https://github.com/binki/entityframeworkmigrationusecontext
https://github.com/binki/entityframeworkmigrationusecontext
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/binki/entityframeworkmigrationusecontext
- Owner: binki
- License: mit
- Created: 2018-06-20T16:13:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-20T16:45:35.000Z (almost 8 years ago)
- Last Synced: 2025-02-28T12:40:35.017Z (over 1 year ago)
- Language: C#
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Usage
First, set a connection string. For example:
>set-connection
connection=Data Source=(LocalDb)\v11.0;Integrated Security=true;Initial Catalog=efmig0
If you want database initialization to succeed, you will need to manually opt-in to `useSuppliedContext` by issuing the `workaround-initialization` command. Otherwise, you will get the default value of `false` which will lead to failure which is intentionally left in place for demonstration purposes for [aspnet/EntityFramework#563](https://github.com/aspnet/EntityFramework6/issues/563):
>workaround-initialization
Then perform commands such as `add` and `list`:
>add
name=My Name
email=user@example.com
>list
user@example.com name=My Name