Ejemplo n.º 1
0
        public MsgUtils Create(string connectionString)
        {
            if (Messages == null)
            {
                var db = new HrContext(connectionString);
                Messages = db.MsgTbl.ToList();
            }

            return(Instance);
        }
Ejemplo n.º 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();
        }