예제 #1
0
        private readonly DBEntities _db; // disposable, so need to implement dispose on the class

        public MyModel()
        {
            _db = new DBEntities(); //where is it getting the connection string?
        }
예제 #2
0
        private readonly DBEntities _db; // disposable, so need to implement dispose on the class

        #endregion Fields

        #region Constructors

        public MyModel()
        {
            _db = new DBEntities(); //where is it getting the connection string?
        }