コード例 #1
0
 public int Create(Calendar cal, User user)
 {
     log.LogStart();
     SERVDataContract.DbLinq.Calendar c = new SERVDataContract.DbLinq.Calendar();
     UpdatePolicyAttribute.MapPropertiesWithUpdatePolicy(cal, c, user, false);
     return(SERVDALFactory.Factory.CalendarDAL().Create(c));
 }
コード例 #2
0
 public Calendar Get(int calendarId)
 {
     using (ICalendarDAL dal = SERVDALFactory.Factory.CalendarDAL())
     {
         SERVDataContract.DbLinq.Calendar lret = dal.Get(calendarId);
         Calendar ret = new Calendar(lret);
         return(ret);
     }
 }
コード例 #3
0
 public Calendar(SERVDataContract.DbLinq.Calendar metal)
 {
     PropertyMapper.MapProperties(metal, this);
     this.SimpleCalendar       = metal.SimpleCalendar == 1;
     this.VolunteerRemainsFree = metal.VolunteerRemainsFree == 1;
 }