A single member cannot be marked with both [DbValue] and [RowCount]; split out the two purposes.
Bad:
[RowCount, DbValue(...)]
public int X {get;set;}
Good:
[RowCount]
public int X {get;set;}
[DbValue(...)]
public int Y {get;set;}
A single member cannot be marked with both [DbValue] and [RowCount]; split out the two purposes.
Bad:
[RowCount, DbValue(...)]
public int X {get;set;}
Good:
[RowCount]
public int X {get;set;}
[DbValue(...)]
public int Y {get;set;}