EntityFramework对枚举的引入是从版本5开始的(如果没有记错的话)。枚举可以很大程度上提高对程序的可读性。那么在EntityFramework的CodeFirst模式下,如何使用枚举呢?答案很简单:还是那么用!
看似废话,其实不然,看下面(修改上一篇中用户信息定义):
/// <summary>
/// 性别枚举
/// </summary>
public enum Gender
{
Male,
Female
} public class UserProfile
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Column(Order = )]
public int UserId { get; set; } [Column(Order = )]
[Required]
public string UserName { get; set; } [Column(Order = )]
public string UserCode { get; set; } [Column(Order = )]
public int Status { get; set; } [Column(Order = )]
public string Email { get; set; } [Column(Order = )]
public Gender Gender { get; set; } [Column(Order = )]
public int? CreatorId { get; set; } public virtual ICollection<Role> Roles { get; set; } public int? AddressId { get; set; } [ForeignKey("AddressId")]
public Address Address { get; set; } public UserProfile()
{
Gender = Framework.DomainModels.Gender.Male;
}
}
删除旧的数据库,重新运行项目,看看会有什么结果!
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVMAAAC3CAIAAAAgiyoDAAAXLklEQVR4nO2de3BU133Ht39nMu100iSTceumdT2TiWfaToxbb1K3qd0OjZ2006QZDS22B8eLARvbgjADsjxtMKQ8ahYLJCSMhWXZIEGAYHwFWMYvsAl+AAYb28K8BFiSBZItjEASOv1jd+897/s6l3t37/cz+4dY7T33XHE/e869e37fzRAAQPrIxN0B8/zfxs+WtPctae9btL7vf1p65zzZM33Fp3ctPfvTBWcmPnL67+d03/LL7rj7CEDMVKb5La+TNS+Pr3px7AlrdMmWkfkbLtc8d2n22i/vb/pyasOXtzx0yEMzVi6TzXfRP3iH2yRAC4WtbPxsXtgum+/qymeDHwKocCrT/KXtfYva+mpbeh9q7Jmy7OzPFpz553nd35/V/TcPn/rb6u6b7nvHQzNJML+4laOwp60yOUvfHwASb/7OFzuXy9j5Yqdqk3XW22PjY9xjeGR04MvRswMjR3su3/zjqR72nCDz/bQgfSXMBzxJN3/58uUjo6PiY/ny5apNCua/sq+r8Bg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9dk+tU6dLVNYoDQapPwoD5Zmhraztx4oRlWbW1tatWrWpsbJw1a9a99947c+ZM94278llqHa5AROb7adlZSict7FH+LlxPwrRDr1aG+xJgvhna29uPHTvW2Ni4aNGixsZGX+YXzk31GRq/+bIF/Pzrw6ULRWc+Vv7Lgflm6OzsbGho2LFjxyOPPLJo0aLq6upcLldVVdXQ0OC2aUkrTn1pWo7kSUub3sP9m/unJAXAcziPjZWT1/twsE4i1SduYL4ZBgYG1q9fv3Tp0o6OjtmzZxe0X7hwYU9Pj8uWznnJCSbWzyqflMhQSO/hhjt+9PNYrssV6nMpIUyVoBpmX0j1iR2Yb4wvvvhi27ZtK1asWLNmTVVVVUtLy8DAgOtWtO6SxA1C3II0JOO24yXnMa91mIgOwjRiud7AizHbA4O+BJhvmNWrVzc0NFRVVXl7OTOEMrPygOZLBrfCG4L9C+qf5szvci2si9F8jPkSYL5hGhsb6+vrZ86cOX36dPdX8ye87a6v2T5zjSAVSLyHwH4gp5/te7jOL12uqP01bj5SfUIB8w1TX19fX18/adKkGTNmuL5YPN+Z+CzxlpvkSbYNLr3HmVLQl+TUlUAmcDiP/CCKDkpE1ptP3S3Qbcv+bCHVJzgw3zB1dXX19fXTpk07ceJE3H0xh89hM4xrpj3FiC8H5htm+fLl9fX1M2bMmDZtWtx9MYmfj+sTJL7LzYcUA/MNs3379pqamrvvvjvujgCgA+abZ+bMmffcc0/cvQBAB8wHII3AfADSCMwHII3AfADSCMwvsrF1Gf2IuzsARAvMJ4SQja3L+k9vvXTeunTeutjfNnTyCZ/yc/Uh+AwZJJ3/ByQ32euJEgdmAAAAAElFTkSuQmCC" alt="" />
好像没什么变化?--------确实没有什么变化!别着急,继续往下看!
在AccountController中新增修改用户的Action,添加用户编辑视图。
/* 加载编辑页面的Action */
public ActionResult EditUser(int id)
{
var model = BaseService.GetSingle<UserProfile>(id); //按照ID获取用户数据
return View(model);
} /* 编辑页面视图 */
@model Framework.DomainModels.UserProfile
@{
ViewBag.Title = "EditUser";
} <h2>EditUser</h2>
@using (Html.BeginForm())
{
@Html.EditorForModel();
}
运行你的项目,输入连接http://localhost:****/Account/EditUser/1看看结果(注意,最后一个1是你已经注册的某个用户的ID,前提是你的路由配置要支持这种访问。其实就是创建项目时的默认路由配置)。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgkAAAIwCAIAAACDdW/KAAAgAElEQVR4nO3c30/c953vce58k8vcrHKVi5Wqc5GLfV/0e8FKs119tUJFFntYO6adSlhHBxqrDS57Tlw8LQUfhS1eWMOms3PcE7PQmMYOBhkbJ6yZopJAag5gbzANsCdkDZGY9DvS9/Mn+Fx8Z5jvfGbg4x/E8x0+z5ceF+v58WXsLN+n+c64NcpXAACE1VT8FQAAooY2AAB0tAEAoKMNAAAdbQAA6GgDAEBHGwAAOtoAANDRBgCAjjYAAHS0AQCgow0AAB1tAADoaAMAQEcbAAC6I9GGlcFv1+T27cH7wY3e0q/qXj5WU/PSt753ZelPlX6FAFBVotKG+4XTe+m+Pbhy4NPLtGHzynf3nn7szakneA2Tb9ToByn/JWreuFXxPy4A+EZZ2Iav1z++MfiT+tfqfnU/fBDaAAB5R7UNylu68nevHqupeelbrdfWCteUPvvVX4YeGj4IbQCAvCi24Y3Jp3x6uTbs437RQ8N30QYAyKMNebQBAPKqrw3e5uyvW77zZy/V1NTUHHv5te8Nzn1Zrg23wqf6FaX8fa9a5Z7yTG3wNv/w3s/q5dWXj9UEr+dVqf/JlU92Qs/1vlq68fN6CV5wzbGXX/2rlsEP17zCA4pe6f2tucHvfeul0nQBwAtUZW348t9++tox/eT+X15/XSrRBm9p8C9LXkzx07+c+4e/fqnMQ469du7ul7nHhF/pG2/uHZE2AKicKLahzLk2eNjWxH97ed9Haeflb74NpgP66vMr3y3XjmAvvzEZ/HgReqXaUSr9HwWAtaqpDeHHvNLw64+//Fr53ldL7/3glTLn5ZI2BA7x/YbQV2i6+p9/UspXX3/52Se/+UnL/76vfKX+dPfv90r2yg/eW/rK89XXn8/8Yu9A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awBgzjzbYhjYwxsyjDbahDYwx82iDbWgDY8w82mAb2sAYM4822CYqbWCMRXwVP1HgRYpEGwAAkUIbAAA62gAA0NEGAICONgAAdLQBAKCjDQAAHW0AAOhoAwBARxsAADraAADQ0QYAgI42AAB0tAEAoKMNAAAdbQAA6GgDAEBHGwAAuv8P5pS7d0douIUAAAAASUVORK5CYII=" alt="" width="425" height="456" />
OK,枚举变量名已经显示,并非我们在数据库中看到的Int型的值。EF还是比较聪明的。其实这个字段应该显示为一个下拉列表,而并非文本框才最合理。
一些思考:对于项目而言,并非是所有可以分类的字段都适合使用枚举类型。例如用户状态Status字段,我们可以用数字0表示用未激活,1表用户已激活。为使我们的代码开起来很优雅,然后就用枚举类型描述这个字段。当然这样做没有错,但是如果考虑到扩展性的话,这样做就是一个硬伤。假如我给用户状态增加一个“锁定”,表示用户已经登录,不能再在其它地方登录的话,就必须修改我们的枚举定义。那么这种情况下,建议还是使用普通的Int型(或字符型)字段比较好。虽然我们需要做一些判断将用户可读懂的状态信息显示,但比起修改类型定义带来的好处更多。往后我们还会继续讨论,如何让代码自动识别这些Int型(或字符型)的字段,将可读性更高的信息展示给用户(我自己都很期待噢)。