Beispiel #1
0
 public void Insert(HDF hdf)
 {
     using (var db = new LiveStockEntities())
     {
         db.HDFs.Add(hdf);
         db.SaveChanges();
     }
 }
Beispiel #2
0
        private void SaveHDFFile(string fileName, string location)
        {
            var hdf = new HDF
            {
                hdf_name        = fileName,
                branch_location = location
            };

            liveStockRepo.Insert(hdf);
        }