【发布时间】:2011-08-28 09:11:58
【问题描述】:
在 Asp.NET MVC 3 + EF CF 项目的 POCO 实体中有一些通用功能是不好的设计吗? 假设我需要函数来获取实体属性生成的下一条记录代码:
public class Warehouse {
public string ReceivingRecordCodeFormat { get; set; }
public int ReceivingRecordCodeNextNumber { get; set; }
#region functions
public string GetNextReceivingRecordCode()
{
return ...
}
#endregion
}
【问题讨论】:
标签: asp.net-mvc-3 poco ef-code-first