我的对象中有一个计算属性,我不想保存到数据库中,有没有办法可以指定它?
以这个为例:
public virtual string FullInfos
{
get
{
var html = Contact1Info;
html += Contact2Info;
return html;
}
}
其中 Contact1Info 和 Contact2Info 是已保存的自动属性...
谢谢!