public Calendar Get(int calendarId) { using (CalendarDAL dal = new CalendarDAL()) { SERVDataContract.DbLinq.Calendar lret = dal.Get(calendarId); Calendar ret = new Calendar(lret); return(ret); } }
/// <summary> /// 获取一条实体数据 /// </summary> /// <returns></returns> public Calendar Get(string colName, object value) { return(dal.Get(colName, value)); }