示例#1
0
 public int SelpropAdd(mSelprop prop)
 {
     Selprop newprop = new Selprop();
     prop_repo.Add(prop.ToDb(newprop));
     SubmitChanges();
     return newprop.id;
 }
示例#2
0
 partial void DeleteSelprop(Selprop instance);
示例#3
0
 partial void UpdateSelprop(Selprop instance);
示例#4
0
 partial void InsertSelprop(Selprop instance);
示例#5
0
文件: mItem.cs 项目: zicjin/Board
 public mSelprop(Selprop p)
 {
     Id = p.id;
     Act = (eAct)p.act;
     Name = p.name;
     ClassName = p.className;
     PropType = (eSelpropType)p.type;
 }
示例#6
0
文件: mItem.cs 项目: zicjin/Board
 public Selprop ToDb(Selprop db)
 {
     if (!string.IsNullOrEmpty(Name)) db.name = Name;
     if (!string.IsNullOrEmpty(ClassName)) db.className = ClassName;
     db.act = (int)Act;
     db.type = (int)PropType;
     return db;
 }