Example Applications?

Coordinator
Mar 14, 2014 at 8:46 PM
Edited Mar 15, 2014 at 8:42 PM
What type of application do you want to see developed using this framework (not too big)?
Sep 28, 2015 at 6:59 PM
Great job !! thank you for your framework. Could you please demo the CRUD operation ? (such as a product table)
and how to working with sql-query or store-procedure ?

Thank a lot.
Coordinator
Oct 7, 2015 at 6:14 PM
Edited Oct 7, 2015 at 6:24 PM
The generated code uses Entity Framework 6/Sqlite or textfiles to store your data. The type of storage used depends on how you configure the System.tt file (in the XXX.Test project). The default options is set to use Entity Framework 6. How to manipulate any data (regardles of type of storage) is shown at: https://sidvall.codeplex.com/wikipage?title=GeneratedCode.

Code examples of CRUD for Entity Framework 6:
// Fetch and update project
var query = (from o in objectContext.Project where o.ProjectId == 1 select o);
var item = await Sidvall.Data.Entity.DataManager.GetEntityObjectAsync(query);
item.Name = "New project name";

// Fetch and delete project
query = (from o in objectContext.Project where o.ProjectId == 2 select o);
objectContext.Project.RemoveRange(query);

// Create new project
item = new Project();
objectContext.Project.Add(item);

// Commit changes to database
await Sidvall.Data.Entity.DataManager.SaveChangesAsync(objectContext);