Exemplo n.º 1
0
        public virtual E remove(E entity)
        {
            entity.deactivate();
            dbContext.SaveChanges();

            return(entity);
        }
        public CustomizedProductSerialNumber findSerialNumber()
        {
            CustomizedProductSerialNumber instance = dbContext.CustomizedProductSerialNumber.SingleOrDefault();

            if (instance == null)
            {
                instance = new CustomizedProductSerialNumber();
                dbContext.CustomizedProductSerialNumber.Add(instance);
                dbContext.SaveChanges();
            }

            return(instance);
        }