日期:2014-05-17 浏览次数:21112 次
[ORMContract("album")]
public class album
{
[IdentityContract]
[PrimaryKeyContract]
[PropertyContract("alb_id")]
public int alb_id { get; set; }
public static readonly string IDProty = "alb_id";
[PropertyContract("alb_name")]
public string alb_name { get; set; }
public static readonly string alb_NameProty = "alb_name";
[PropertyContract("u_id")]
public int u_id { get; set; }
public static readonly string u_idProty = "u_id";
}
List<album> list = new Selection().Query<album>(album.IDProty, 0, ConcatEnum.大于).Skip(1, 1000).ExecuteDataTable<album>();
int UpdateCount = new Updates().Update(list.First());
int DeleteCount = new Deletes().Delete<album>(list.First());
int InsertCount = new Inserts().Insert(list.First());