public MsgUtils Create(string connectionString) { if (Messages == null) { var db = new HrContext(connectionString); Messages = db.MsgTbl.ToList(); } return(Instance); }
/// <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(); }