asp.net中 那个实体 怎么去理解 运用这个呢??
解决方案 »
- 图片打印
- 求助iframe编码问题
- HTTP/1.1 500 Internal Server Error
- 请教,有整个程序的compile的包,怎么部署,不会。。急啊
- 求权限委托的解决思路?在传统的权限设置基础之上
- 150分求一个复杂的sql语句。
- 在ASP.NET项目中如何实现每个网页的都能自动刷新,自动刷新后对ASP.NET程序有影响吗?
- 有关控件和事件的问题,请各位大虾帮忙,急急急!
- 关于Asp.net的Global.asax问题
- asp.net iis中 com组件实例创建失败,clsid xxxx,0x8000ffff
- easyui的searchbox问题
- $('#me').trigger('click');只执行一次
这样就统称为一个实体
using System;
namespace My.Entity
{
[Serializable]
/// <summary>
/// 会员实体类
/// </summary>
public class CustomerEntity
{
#region 会员实体类
/// <summary>
/// 主键,自动递增,字段名:ID
/// [是否标识列:√] [是否主键:√] [是否允许空值:×]
/// [数据类型:int(10)] [默认值:无]
/// </summary>
private int sID;
/// <summary>
/// 主键,自动递增:[是否允许空值:×][默认值:无]
/// </summary>
public int ID
{
get { return this.sID; }
set { this.sID = value; }
}
/// <summary>
/// 用户名
/// </summary>
private int sAlias
/// <summary>
/// 用户名
/// </summary>
public int Alias
{
get { return this.sAlias; }
set { this.sAlias = value; }
}}使用时:
CustomerEntity ce=new CustomerEntity();
ce.ID=0;
ce.Alias="用户账号";
然后将ce当成一个参数就可以了