public TalkInfo GetModel(int id, bool fromCache = false) { TalkInfo entity = null; List <TalkInfo> list = GetList(fromCache); entity = list.Find(c => c.ID == id); return(entity); }
public static TalkInfo PopulateTalkInfo(IDataReader reader) { TalkInfo entity = new TalkInfo() { ID = (int)reader["ID"], Title = reader["Title"] as string, Content = reader["Content"] as string, Tag = reader["Tag"] as string, Realname = reader["Realname"] as string, PublicUserID = (int)reader["PublicUserID"], AddTime = DataConvert.SafeDate(reader["AddTime"]), CorporationID = (int)reader["CorporationID"] }; return(entity); }
public abstract void UpdateTalk(TalkInfo entity);
public abstract void AddTalk(TalkInfo entity);
public void Update(TalkInfo entity) { CommonDataProvider.Instance().UpdateTalk(entity); }
public void Add(TalkInfo entity) { CommonDataProvider.Instance().AddTalk(entity); }