dimanche 30 novembre 2014

ASP Custom Storage Provider [on hold]


I'm trying to make my own Storage Provider for my Products


I would like to do the following in my seeding (for example)



var store = new ProductStore<Product>(_db);
var manager = new ProductManager<Product>(store);

if (!_db.Products.Any(r => r.Title == "product title")){
var product = new Product {
Title = "product title",
Description = "product description"
};

manager.Create(product);
}


Any examples or Links to tutorial, so I can understand what needs to be added, and why. Would help me so much!





Aucun commentaire:

Enregistrer un commentaire