Ejemplo n.º 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?
        }
Ejemplo n.º 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?
        }