示例#1
0
        public void Delete(Guid id)
        {
            var patient = GentuUow.Repository <Patients>().FindBy(x => x.Id == id).FirstOrDefault();

            if (patient != null)
            {
                GentuUow.RegisterDeleted <Patients>(patient);
                GentuUow.Commit();
            }
        }
        public void Delete(Guid id)
        {
            var practice = GentuUow.Repository <Practices>().FindBy(x => x.Id == id).FirstOrDefault();

            if (practice != null)
            {
                GentuUow.RegisterDeleted <Practices>(practice);
                GentuUow.Commit();
            }
        }
示例#3
0
 public Patients Update(Patients patient)
 {
     GentuUow.RegisterDirty <Patients>(patient);
     GentuUow.Commit();
     return(patient);
 }
示例#4
0
 public Patients Add(Patients patient)
 {
     GentuUow.RegisterNew <Patients>(patient);
     GentuUow.Commit();
     return(patient);
 }
 public Practices Update(Practices practice)
 {
     GentuUow.RegisterDirty <Practices>(practice);
     GentuUow.Commit();
     return(practice);
 }
 public Practices Add(Practices practice)
 {
     GentuUow.RegisterNew <Practices>(practice);
     GentuUow.Commit();
     return(practice);
 }