Exemplo n.º 1
0
 public void addTransmissionToTransmissionSet(TransmissionSet set, Transmission value)
 {
     using (AcaIrsDbEntities db = new AcaIrsDbEntities())
     {
         db.Entry(set).State = EntityState.Modified;
         set.Transmissions.Add(value);
         db.Entry(value).State = EntityState.Added;
         db.SaveChanges();
     }
 }
Exemplo n.º 2
0
        public static Transmission buildTest()
        {
            Transmission t = new Transmission();
            t.TransmissionDate = System.DateTime.Now;
            t.ImportDate = System.DateTime.Now;
            t.StatusReceived = System.DateTime.Now;

            Submission s = Submission.buildTest();
            t.Submissions.Add(s);
            s.Transmission = t;
            return t;
        }
Exemplo n.º 3
0
 public void saveTransmissionReceiptID(Transmission record)
 {
     using (AcaIrsDbEntities db = new AcaIrsDbEntities())
     {
         db.Transmission.Attach(record);
         var entry = db.Entry(record);
         entry.Property(e => e.ReceiptID).IsModified = true;
         // other changed properties
         db.SaveChanges();
     }
 }
Exemplo n.º 4
0
 public void saveTransmission(Transmission record)
 {
     using (AcaIrsDbEntities db = new AcaIrsDbEntities())
     {
         db.Transmission.Attach(record);
         db.Entry(record).State = EntityState.Modified;
         db.SaveChanges();
     }
 }