日期:2014-05-20 浏览次数:20898 次
--用户类 表脚本创建 for SQL SERVER
Create Table TB_User
(
ID int identity(1,1) primary key,
Name varchar(50) not null,
Birthday datetime
);
/*
本类由PWMIS 实体类生成工具(Ver 1.1)自动生成
http://www.pwmis.com/sqlmap
使用前请先在项目工程中引用 PWMIS.Core.dll
2010-2-26 17:45:06
*/
using System;
using PWMIS.DataMap.Entity;
namespace MyNameSpace
{
[Serializable()]
public partial class User : Entity
{
public User()
{
TableName = "tb_user";
//IdentityName = "标识字段名";
IdentityName="ID";
//PrimaryKeys.Add("主键字段名");
PrimaryKeys.Add("ID");
AddProperty("ID", default(System.Int32));
AddProperty("Name", default(System.String));
AddProperty("Birthday", default(System.DateTime));
}
public System.Int32 ID
{
get{return (System.Int32)getProperty("ID");}
set{setProperty("ID",value );}
}
public System.String Name
{
get{return (System.String)getProperty("Name");}
set{setProperty("Name",value ,50);}
}
public System.DateTime Birthday
{
get{return (System.DateTime)getProperty("Birthday");}
set{setProperty("Birthday",value );}
}
}
}