English 中文(简体)
框架启动点
原标题:Entity Framework Starting Point

我创建了一个自定义会员服务供应商, 将共享我所有 MVC3 和 ASP.NET 应用程序。 我从在代码工程中找到的一些样本代码开始。 虽然一切都进展顺利, 我愿意从样本代码中使用的Linq- to- SQL 转到 EF4 。

我在网上读过几个样本和一些教义。我对ORM经验很少,但想进一步阐述这一点。但现在,我需要理解三个实体发电机之间的区别。我有以下选择...

ADO.NET EntityObject Generator ADO.NET POCO Entity Generator ADO.NET Self-Tracking Entity Generator

我的对象在数据库中已经定义了。 我也已经用链接到 sql 的链接将分类划入数据库。 例如, 我的用户 。

[Table(Name = "User")]
    public class User {
        [Column(IsPrimaryKey = true, IsDbGenerated = true, AutoSync = AutoSync.OnInsert)]
        public int UserID { get; set; }
        [Column]
        public string UserName { get; set; }
        [Column]
        public string Password { get; set; }
        [Column]
        public string EmailAddress { get; set; }
        [Column]
        public string FirstName { get; set; }
        [Column]
        public string LastName { get; set; }
    }

在三种可供选择的选项中,我应该从哪开始呢? 或者我还不知道还有另一种选项吗? 或者,至少有人能为每个选项提供足够的信息,让我自己做决定吗?

我希望我能尽快完成这项工作,但似乎使用ORM可能比在数据库和DTO代码中创建存储程序要多。 任何帮助或链接都会感激不尽。

谢谢 谢谢

最佳回答

可在

这个 是一个有用的实体框架论坛。

对我来说,在我开始使用《实体框架》时,了解《实体框架》最有用的参考文献是Daniel Simmons FA/a>。请看!

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签