Пример #1
0
        public void addNew(Ac4yIdentificationBase _Ac4yIdentificationBase)
        {
            using (var ctx = new AllContext(baseName))
            {
                ctx.Ac4yIdentificationBases.Add(_Ac4yIdentificationBase);

                ctx.SaveChanges();
            }
        }
Пример #2
0
        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);
        }
Пример #3
0
 public void setTemplate(Ac4yIdentificationBase newValue)
 {
     template = newValue;
 }