Ejemplo n.º 1
0
        public PhotoProvider(string connectionString, string imagesPath)
        {
            this.imagesPath = imagesPath;
            var optionsBuilder = new DbContextOptionsBuilder();

            optionsBuilder.UseNpgsql(connectionString);
            Db = new PhotoProviderContext(optionsBuilder.Options);
        }
Ejemplo n.º 2
0
 public PhotoProvider(PhotoProviderContext db, string imagesPath)
 {
     this.Db         = db;
     this.imagesPath = imagesPath;
 }