开发者

Entity Framework 4 and POCO [closed]

开发者 https://www.devze.com 2023-01-14 20:31 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

Improve this question

I'm trying to get started using the latest Entity Framework 4 release on Visual Studio 2010 to create a simple WCF applicati开发者_运维技巧on. I would really like to start using POCO objects as opposed to EntityObject classes to serialize. I have been looking for some good write-ups about how to implement custom POCO mappings for Entity Objects but can't find anything recent.

I'm particularly interested in how to create custom mappings as opposed to having to create POCO objects with identical field names to their database counterparts.

Can anyone point me towards some good resources?


Check out these:

EF Feature CTP4 Walkthrough: Code First

Walkthrough: POCO Template for the Entity Framework


Can anyone point me towards some good resources?

It depends on your level of comfort dealing with EF and T4. You can also check out a tweaked version of EF templates which could open more possibilities for you.

Entity Framework Interface Generator

https://entityinterfacegenerator.codeplex.com

This project contains customized T4 templates which can generate interfaces and attributes for the DbContext class and entity classes.

0

精彩评论

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