Exemplo n.º 1
0
        public void InsertOrUpdate(Work Work)
        {
            if (Work.WorkId == default(Guid)) // New entity
            {

                //context.Works.Add(Work);
                _context.Entry(Work).State = EntityState.Added;
            }
            else // Existing entity
            {
                _context.Entry(Work).State = EntityState.Modified;
            }
        }
Exemplo n.º 2
0
 public void InsertGraph(Work entity)
 {
     throw new NotImplementedException();
 }