Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterblazejewicz/ef-generator-aspnet
A rewrite of some of EF7 docs examples with generator-aspnet and SQLite. Code-first and database-first approaches.
https://github.com/peterblazejewicz/ef-generator-aspnet
Last synced: 25 days ago
JSON representation
A rewrite of some of EF7 docs examples with generator-aspnet and SQLite. Code-first and database-first approaches.
- Host: GitHub
- URL: https://github.com/peterblazejewicz/ef-generator-aspnet
- Owner: peterblazejewicz
- License: unlicense
- Created: 2016-01-09T20:01:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-12T22:25:12.000Z (almost 9 years ago)
- Last Synced: 2023-04-05T21:37:47.700Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 102 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Entity Framework code generation with `generator-aspnet`
A rewrite of some of Entity Framework documentation examples to make them work with x-plat `generator-aspnet` and `SQLite`.
See [Getting Started on Full .NET (Console, WinForms, WPF, etc.)](http://ef.readthedocs.org/en/latest/) from Entity Framework documentation.
## Requirements
* ASP.NET 5 RC1, see documentation: [ASP.NET 5 Getting started](https://docs.asp.net/en/latest/getting-started/index.html)
* `generator-aspnet`: [https://github.com/OmniSharp/generator-aspnet](https://github.com/OmniSharp/generator-aspnet). See documentation: [Building Projects with Yeoman](https://docs.asp.net/en/latest/client-side/yeoman.html)## [Console Application to New Database (Code First)](/src/EFGetStarted.ConsoleApp.NewDb)
> In this walkthrough, you will build a console application that performs basic data access against a Microsoft SQL Server database using Entity Framework. You will use migrations to create the database from your model.
A step-by-step rewrite of original EF7 documentation example built completely using `generator-aspnet` and `SQLite` for x-platform support. Any editor with OmniSharp support should provide syntax and tooling support.
Written using VSCode on Mac OS X.
## [Console Application to Existing Database (Database First)](/src/EFGetStarted.ConsoleApp.ExistingDb)
> In this walkthrough, you will build a console application that performs basic data access against a Microsoft SQL Server database using Entity Framework. You will use reverse engineering to create an Entity Framework model based on an existing database.
This example uses existing SQLite database and `generator-aspnet`. You will use SQLite cli to recreate database. The Entity Framework is used to scaffold model classes from existing SQLite database. Then scaffolded sources are used in console application implementation.
Written using VSCode on Mac OS X.
## [ASP.NET 5 Application to New Database (Code First)](/src/EFGetStarted.AspNet5.NewDb)
> In this walkthrough, you will build an ASP.NET 5 MVC application that performs basic data access using Entity Framework. You will use migrations to create the database from your model.
This example uses basic web application scaffolded with `generator-aspnet` and file based `SQLite` database.
Written using VSCode on Mac OS X.
## [ASP.NET 5 Application to Existing Database (Database First)](/src/EFGetStarted.AspNet5.ExistingDb)
> In this walkthrough, you will build an ASP.NET 5 MVC application that performs basic data access using Entity Framework. You will use reverse engineering to create an Entity Framework model based on an existing database.
This example will use `generator-aspnet` scaffolded basic web project and file based `SQLite`. The `generator-aspnet` will be used to scaffold all content.
Written using VSCode on Mac OS X.
## Author
@peterblazejewicz