Exemple #1
0
 public int ItemtempAdd(mItemTemp itemtemp)
 {
     Itemtemp newitem = new Itemtemp();
     itemtemp_repo.Add(itemtemp.ToDb(newitem));
     SubmitChanges();
     return newitem.id;
 }
Exemple #2
0
 public Itemtemp ToDb(Itemtemp db)
 {
     if (!string.IsNullOrEmpty(Name)) db.name = Name;
     if (!string.IsNullOrEmpty(ToHtml)) db.toHtml = ToHtml;
     if (!string.IsNullOrEmpty(Props)) db.props = Props;
     db.act = (int)Act;
     return db;
 }
Exemple #3
0
 public mItemTemp(Itemtemp it)
 {
     Id = it.id;
     Act = (eAct)it.act;
     Name = it.name;
     ToHtml = it.toHtml;
     Props = it.props;
 }
Exemple #4
0
 partial void DeleteItemtemp(Itemtemp instance);
Exemple #5
0
 partial void UpdateItemtemp(Itemtemp instance);
Exemple #6
0
 partial void InsertItemtemp(Itemtemp instance);