Exemple #1
0
        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);
Exemple #5
0
 public void Update(TalkInfo entity)
 {
     CommonDataProvider.Instance().UpdateTalk(entity);
 }
Exemple #6
0
 public void Add(TalkInfo entity)
 {
     CommonDataProvider.Instance().AddTalk(entity);
 }