コード例 #1
0
        public MsgUtils Create(string connectionString)
        {
            if (Messages == null)
            {
                var db = new HrContext(connectionString);
                Messages = db.MsgTbl.ToList();
            }

            return(Instance);
        }
コード例 #2
0
        /// <summary>
        /// used to reload Messages table again from database to memory
        /// </summary>
        public void Refresh(string connectionString)
        {
            var db = new HrContext(connectionString);

            Messages = db.MsgTbl.ToList();
        }