コード例 #1
0
        public void saveBatchDispatchDetail(BatchDispatchDetail batchDispatchDetail)
        {
            if (context.Entry(batchDispatchDetail).State == EntityState.Detached)
            {
                context.BatchDispatchDetails.Add(batchDispatchDetail);
            }

            // context.Entry(BatchDispatch).State = EntityState.Modified;
            context.SaveChanges();
        }
コード例 #2
0
 public void deleteBatchDispatchDetail(BatchDispatchDetail batchDispatchDetail)
 {
     context.BatchDispatchDetails.Remove(batchDispatchDetail);
     context.SaveChanges();
 }
コード例 #3
0
 public void quickSaveBatchDispatchDetail(BatchDispatchDetail batchDispatchDetail)
 {
     context.BatchDispatchDetails.Add(batchDispatchDetail);
 }