Generate Complete Business Entity For C#

Coordinator
Oct 11, 2007 at 11:28 PM
Edited Oct 11, 2007 at 11:41 PM
Here is template to generate complete business entity for C#.
** generate basic business entity/v1.0
#region Using Directives
 
using System;
using System.ComponentModel;
using System.Collections;
using System.Xml.Serialization;
using System.Runtime.Serialization;
 
#endregion
 
namespace MyNameSpace.Entities
{
    ///<summary>
    /// An object representation of the "$table" table.
    ///</summary>
    {"[Serializable, DataObject]"}
    public class $table
    {
        #region Variable Declarations
		{loop}
		private $type _$field;{/loop}
 
        #endregion Variable Declarations
 
        #region Constructors
 
        public $table()
        {
		 {loop}_$field = $default;
		{/loop}
		}
 
        #endregion
 
        #region Properties
		{loop}
		public $type $field
        {
            get
            {
                return this._$field;
            }
            set
            {
                this._$field = value;
            }
		}
		{/loop}
        #endregion
    }
}