public void addNew(Ac4yIdentificationBase _Ac4yIdentificationBase) { using (var ctx = new AllContext(baseName)) { ctx.Ac4yIdentificationBases.Add(_Ac4yIdentificationBase); ctx.SaveChanges(); } }
public Ac4yIdentificationBase findFirstById(Int32 id) { Ac4yIdentificationBase a = null; using (var ctx = new AllContext(baseName)) { var query = ctx.Ac4yIdentificationBases .Where(ss => ss.id == id) .FirstOrDefault <Ac4yIdentificationBase>(); a = query; } return(a); }
public void setTemplate(Ac4yIdentificationBase newValue) { template = newValue; }