五、生成实体
文档目录
生成实体:
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; } } }