开发者

ASP.NET MVC Dummy Repository once working than make Database. Is it wise?

开发者 https://www.devze.com 2023-01-28 10:11 出处:网络
I am working on a project. Completed conceptual model of Database is done in EntityFrameWork. Database is not created yet. Should I make a dummy Records with dummy re开发者_运维技巧pository and go on

I am working on a project. Completed conceptual model of Database is done in EntityFrameWork. Database is not created yet. Should I make a dummy Records with dummy re开发者_运维技巧pository and go on development without creating database and once all done than just created the DB and turn dummy repositories to live? . Is it right decision or should I start making database to work with it from the start?

Thanks


There is nothing wrong with working against a dummy repository. In many ways this is a way of abstracting out your data layer (i.e. EF) from your UI. This should be the case anyhow if you are Unit Testing your models, controllers, etc. One cautionary note (from experience) make sure you're not coding to the hard coded dummy data, real data in the DB may (or will) not conform to the inherent assumptions your hard coded data will most likely have.

0

精彩评论

暂无评论...
验证码 换一张
取 消