Nhibernate Castle ActiveRecord是否支持SQL公式?
Castle ActiveRecord是否支持nHibernate支持的SQL公式 在nHibernate,我们可以做这样的事情Nhibernate Castle ActiveRecord是否支持SQL公式?,nhibernate,castle-activerecord,Nhibernate,Castle Activerecord,Castle ActiveRecord是否支持nHibernate支持的SQL公式 在nHibernate,我们可以做这样的事情 <property name="CountOfPosts" formula="(select count(*) from Posts where Posts.Id = Id)"/> Castle Active Record是否支持此功能?是的,具有公式属性 [Property(Formula = "(select count(*) from
<property name="CountOfPosts"
formula="(select count(*) from Posts where Posts.Id = Id)"/>
Castle Active Record是否支持此功能?是的,具有公式属性
[Property(Formula = "(select count(*) from Posts where Posts.Id = Id)")]
public int CountOfPosts {get;set;}
是的,它有一个公式属性
[Property(Formula = "(select count(*) from Posts where Posts.Id = Id)")]
public int CountOfPosts {get;set;}