/// <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); } }
/// <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); } }