惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
小众软件
小众软件
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
MyScale Blog
MyScale Blog

博客园 - BigKiteasdasd

招聘软件开发 javascript常用验证(转载) 人生很重要的一个开始 NStarfaiNet框架类关系简图 NStarfaiNet框架性能测试结果 NStarfaiNet框架代码生成器Version1。1 NStarfaiNet框架代码生成器 NstarfaiNet框架日志 NStarfaiNet 框架的使用示例(三) NStarfaiNet 框架的使用示例(一) NStarfaiNet的SQL Map文件示范(maps/sample.xml) NStarfaiNet 的配置(dao_maps_config.config) NStarfaiNet 框架 iBatis.Net ParameterMap 怎样在C#中实现confirm() 动态添加附件上传按钮 常用javascript脚本 链接处变换色彩 学习配置篇1
NStarfaiNet 框架的使用示例(二)
BigKiteasdasd · 2006-10-22 · via 博客园 - BigKiteasdasd

NstarfaiNet 框架的使用示例(一)中已经对使用NStarfaiNet的应用框架的DAO和BLL做了简单的介绍。以下将继续对BLL进行补充说明,并示范生成的Model实体代码内容。
BLL: 自动生成的业务类代码不宜手动修改(如添加一些业务方法等),这样做是为了避免将来重新生成代码覆盖了自己添加的内容。开发者可以按照模块或者功能划分,手工添加一个新的BIZ业务类来处理其他业务逻辑。

 1/*
 2  版权所有:版权所有(C) 2007 NStarfaiNet框架设计者
 3  模块名称:NStarfaiNet.Test.BLL
 4  完成日期:2006-08-20
 5  设计作者:刘斌[liubin]
 6  内容摘要:BaseBLL 的摘要说明。
 7*/

 8using System;
 9using System.Data;
10using System.Runtime.Remoting.Messaging;
11
12using NStarfaiNet.Test.Dao;
13using NStarfaiNet.Access.Interface;
14using NStarfaiNet.Test.Model.Interface;
15
16namespace NStarfaiNet.Test.BLL
17{
18    /// <summary>
19    /// 业务基类
20    /// </summary>

21    public class BaseBLL
22    {
23        自动生成代码
82    }

83}

84

     Model:
      此处以测试表bsi_test为例

 1/*
 2  版权所有:版权所有(C) 2007 NStarfaiNet框架设计者
 3  模块名称:NStarfaiNet.Test
 4  完成日期:2006-08-20
 5  设计作者:刘斌[liubin]
 6  内容摘要:BsiTestEntity 的摘要说明。
 7*/

 8using System;
 9using NStarfaiNet.Access.Interface;
10using NStarfaiNet.Test.Model.Interface;
11
12namespace NStarfaiNet.Test.Model
13{
14    /// <summary>
15    /// NStarfaiNet 测试实体类
16    /// </summary>

17    [TableAttribute(TableName="bsi_test")]
18    public class BsiTestEntity : BaseEntity,IBsiTestEntity
19    {
20        自动生成代码
64        
65    }

66    
67}

68
69

      实体接口类:

 1/*
 2  版权所有:版权所有(C) 2007 NStarfaiNet框架设计者
 3  模块名称:NStarfaiNet.Test
 4  完成日期:2006-08-20
 5  设计作者:刘斌[liubin]
 6  内容摘要:BsiTestEntity 的摘要说明。
 7*/

 8
 9using NStarfaiNet.Access.Interface;
10
11namespace NStarfaiNet.Test.Model.Interface
12{
13 /// <summary>
14 /// NStarfaiNet 测试表实体接口。
15 /// </summary>

16 public interface IBsiTestEntity : IEntity
17 {   
18     自动生成代码
29 }

30}

31
32