• 大小: 1.65MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-29
  • 语言: 其他
  • 标签:

资源简介

非常好的代码生成工具,附带源码,非常感谢teddy http://teddyma.cnblogs.com

资源截图

代码片段和文件信息

#region auto-generated
//------------------------------------------------------------------------------
// 
//     此代码由 CodingBuilder(中文名称:代码民工) v3.2.61206.26177 生成。
//     运行库版本:2.0.50727.42
//
//     CodingBuilder是 Clark Chan 开发完成的辅助代码工具。
//     版权所有 (C) Clark Chan,保留所有权利。严禁非授权的商业应用!
//     博客:http://clarkchan.cnblogs.com/
//
//     生成日期:2006年12月06日 14:36:11 。
//     对此文件的更改可能会导致不正确的行为。
// 

//------------------------------------------------------------------------------
#endregion
using System;
using System.Collections.Generic;
using System.Data;
using Taeheesoft.NToggery.DALFactory;
using Taeheesoft.NToggery.IDAL;
using Taeheesoft.NToggery.Model;

//  Business Logic Tier
namespace Taeheesoft.NToggery.BLL
{
    /// 
    /// A business component to manage Demo s.
    /// 

    public class Demo
    {

        // Get an instance of the Demo DAL using the DALFactory
        // Making this static will cache the DAL instance after the initial load
        private static readonly IDemo dal = DataAccess.CreateDemo();

        #region Default constructor

        public Demo() { }

        #endregion

        #region Public functions

        #region Add

        /// 
        /// Add a new record.
        /// 

        /// 
        /// 添加一条新记录。
        /// 

        /// A Demo model.
        public void Add(DemoModel demoModel)
        {
            dal.Insert(demoModel);
        }

        #endregion

        #region Delete

        /// 
        /// Delete a existing record.
        /// 

        /// 
        /// 删除一条现有的记录。
        /// 

        /// A Demo model.
        public void Delete(DemoModel demoModel)
        {
            dal.Delete(demoModel);
        }

        #endregion

        #region Edit

        /// 
        /// Edit a existing record.
        /// 

        /// 
        /// 修改一条现有的记录。
        /// 

        /// A Demo model.
        public void Edit(DemoModel demoModel)
        {
            dal.Update(demoModel);
        }

        #endregion

        #region View

        /// 
        /// Query for a Demo model.
        /// 

        /// 
        /// 查看一条记录。
        /// 

        /// A Demo model.
        /// Interface to model a Demo.
        public DemoModel View(DemoModel demoModel)
        {
            return dal.SelectOne(demoModel);
        }

        #endregion

        #region Query

        /// 
        /// Query for Demo List.
        /// 

        /// 
        /// 查询多条记录(IList范型存储)。
        /// 

        /// A D

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        680  2006-11-11 19:00  引用说明.txt

     目录          0  2006-12-06 15:43  BACKUP

     文件    1638400  2006-12-06 15:42  Database\NToggery2_Data.MDF

     文件    1048576  2006-12-06 15:42  Database\NToggery2_Log.LDF

     目录          0  2006-12-06 15:42  Database

     文件      57396  2006-12-06 12:41  Documents\CB_01.jpg

     文件      89104  2006-12-06 12:43  Documents\CB_02_01.jpg

     文件      96214  2006-12-06 12:42  Documents\CB_02_02.jpg

     文件      94265  2006-12-06 12:44  Documents\CB_03.jpg

     文件     149626  2006-12-06 12:50  Documents\CB_04.jpg

     文件     127717  2006-12-06 12:50  Documents\CB_05.jpg

     文件      68185  2006-12-06 12:52  Documents\CB_ColumnSchema.jpg

     文件      71168  2006-12-06 15:35  Documents\NToggery 开发之旅(01) - 程序架构.doc

     文件     734208  2006-12-06 15:36  Documents\NToggery 开发之旅(02) - 代码生成.doc

    ..A.SH.     24576  2006-12-06 13:31  Documents\Thumbs.db

     目录          0  2006-12-06 15:42  Documents

     文件       4016  2006-11-10 18:17  Src\BLL\Account\Sample.cs

     文件        157  2006-11-08 10:14  Src\BLL\Account\UserProfile.cs

     目录          0  2006-12-06 15:42  Src\BLL\Account

     文件       2786  2006-11-08 10:15  Src\BLL\BLL.csproj

     文件        269  2006-10-05 11:46  Src\BLL\BLL.csproj.vspscc

     文件       3401  2006-12-06 14:36  Src\BLL\Demo.cs

     文件        160  2006-10-05 11:46  Src\BLL\mssccprj.scc

     文件       1416  2006-12-06 14:39  Src\BLL\Properties\AssemblyInfo.cs

    ..A.SHR       115  2006-10-05 11:46  Src\BLL\Properties\vssver2.scc

     目录          0  2006-12-06 15:42  Src\BLL\Properties

    ..A.SHR       157  2006-10-05 11:46  Src\BLL\vssver2.scc

     目录          0  2006-12-06 15:46  Src\BLL

     文件       2402  2006-11-08 10:15  Src\DALFactory\DALFactory.csproj

     文件        276  2006-10-05 11:46  Src\DALFactory\DALFactory.csproj.vspscc

............此处省略136个文件信息

评论

共有 条评论

相关资源