ehsmohammadi / Atabat

0 stars 0 forks source link

Convert Persistence layer to code first approach #80

Closed ehsmohammadi closed 7 years ago

ehsmohammadi commented 7 years ago

According to this Research Issue we want to replace model first approach of this project to Code first forwarding to following comment and steps that we describe

ehsmohammadi commented 7 years ago
  1. Install Resharper for tracing the error ...
  2. Create all classes and context from database
  3. Remove previous context ( object context ) and change it to new db context
ehsmohammadi commented 7 years ago

First bug : calling store procedure is different with Db Context according to this link i change the calling in all of the repository in code : https://www.mikesdotnetting.com/article/299/entity-framework-code-first-and-stored-procedures