Ejemplo n.º 1
0
        public EFGameRepository()
        {
            string mdfFilePath = HttpContext.Current.Server.MapPath("~/App_Data/GameStore.mdf");

            context = new EFDbContext(string.Format(@"Data Source=.\SQLEXPRESS;AttachDbFilename={0};Integrated Security=True;User Instance=True", mdfFilePath));
        }
Ejemplo n.º 2
0
 public EFOfferRepository(EFDbContext context)
 {
     this.context = context;
 }
Ejemplo n.º 3
0
        public EFGameRepository()
        {
            string mdfFilePath = HttpContext.Current.Server.MapPath("~/App_Data/GameStore.mdf");

            context = new EFDbContext(string.Format(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='{0}';Integrated Security=True;", mdfFilePath));
        }