Entity Framework - the easy way to make and access SQL data ....
Posted: Fri May 12, 2017 3:25 pm
Hi Michael and others,
I have started this thread to continue the basic thread about Virtual Machines, and running VS 2017, Management Studio, and X# with SQL Server support.
I am still using the above software platform on my office machine and now have the basics of a working demo sample based on Entity Framework technology (version 6) from Microsoft.
All I have done is write some .NET code in X# syntax, and the EF support has done the rest - made an empty database when I first run the app.
Check the images to see the PRGs for the entity classes as well as the Tables created. Remember with complex entities there is no longer a simple one to one mapping of class to Table. But then we don't have to worry ourselves about that.
Soon I hope to have a basic running app which you can run to create a database, and also seed some initial data for a couple of House Holds. Remember 'House Hold' are based on Property (Real Estate), Persons, and an Address object. A person can have a collection of vehicles.
Check these out for a start :-
It was quite easy to code this, you just need a simple to follow working app. I used the one I did on 'Stock' for the German conference in Cologne.
Hope this interests a few.
Oh! and did you see Johan's post - we should be able to do the same with a Npgsql database as it has a suitable LINQ driver available for it.
Cheers,
Phil.
Wales, UK.
I have started this thread to continue the basic thread about Virtual Machines, and running VS 2017, Management Studio, and X# with SQL Server support.
I am still using the above software platform on my office machine and now have the basics of a working demo sample based on Entity Framework technology (version 6) from Microsoft.
All I have done is write some .NET code in X# syntax, and the EF support has done the rest - made an empty database when I first run the app.
Check the images to see the PRGs for the entity classes as well as the Tables created. Remember with complex entities there is no longer a simple one to one mapping of class to Table. But then we don't have to worry ourselves about that.
Soon I hope to have a basic running app which you can run to create a database, and also seed some initial data for a couple of House Holds. Remember 'House Hold' are based on Property (Real Estate), Persons, and an Address object. A person can have a collection of vehicles.
Check these out for a start :-
It was quite easy to code this, you just need a simple to follow working app. I used the one I did on 'Stock' for the German conference in Cologne.
Hope this interests a few.
Oh! and did you see Johan's post - we should be able to do the same with a Npgsql database as it has a suitable LINQ driver available for it.
Cheers,
Phil.
Wales, UK.