Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="t"></param>
 public void CreateItem(Item t)
 {
     using (IDataContext ctx = DataContext.Instance())
     {
         t = (Item)PPUtils.NullableToDbNull(t);
         var rep = ctx.GetRepository <Item>();
         rep.Insert(t);
     }
 }