生成實體: html
LambdaToSql.SysConfig.Init(); LambdaToSql.FrameWork.CreateEntity.Init("d:/class/");
實例:微信
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using LambdaToSql; using LambdaToSql.FrameWork; using LambdaToSql.Extended; namespace EntityModel { /// <summary> /// 用戶表 /// </summary> [Serializable] [DataContract] public class System_UserInfo { /// <summary> /// 用戶ID /// </summary> [DataMember] public System.Guid Guid { get; set; } /// <summary> /// 登陸名稱 /// </summary> [DataMember] public string LoginName { get; set; } /// <summary> /// 用戶名 /// </summary> [DataMember] public string UserName { get; set; } /// <summary> /// 密碼 /// </summary> [DataMember] public string PassWord { get; set; } /// <summary> /// 證件類型 /// </summary> [DataMember] public Nullable<System.Guid> Cert { get; set; } /// <summary> /// 身份證號 /// </summary> [DataMember] public string IdCard { get; set; } /// <summary> /// 出生日期 /// </summary> [DataMember] public string Birthday { get; set; } /// <summary> /// 地址 /// </summary> [DataMember] public string Address { get; set; } /// <summary> /// 頭像 /// </summary> [DataMember] public string ImgUrl { get; set; } /// <summary> /// 性別 /// </summary> [DataMember] public string Gender { get; set; } /// <summary> /// 手機號 /// </summary> [DataMember] public string Mobile { get; set; } /// <summary> /// 備註 /// </summary> [DataMember] public string Remark { get; set; } /// <summary> /// 微信登陸惟一碼 /// </summary> [DataMember] public string Unionid { get; set; } /// <summary> /// 建立時間 /// </summary> [DataMember] public Nullable<System.DateTime> CreateTime { get; set; } /// <summary> /// 是否刪除 /// </summary> [DataMember] public Nullable<int> IsDelete { get; set; } /// <summary> /// 建立人ID /// </summary> [DataMember] public Nullable<System.Guid> CreateUserInfoID { get; set; } } }