0
組後我有一個Collection<IStatements> statements
具有智能感知在LINQ投影由
public interface IStatements
{
IDocuments Documents { get; set; }
string StatementDate { get; set; }
}
public class Documents : IDocuments
{
public string Date { get; set; }
public string Url { get; set; }
}
我想通過在STATEMENTDATE以執行一組,然後做一個突起。 當投影該組是否多於一個聲明,然後我想俱樂部的賬單日爲1的問題是,我不GROUPBY後獲得智能
var monthlyStatements = from mStatement in statements
orderby mStatement.StatementDate descending
group mStatement by mStatement.StatementDate;
我曾嘗試下面的代碼
var monthlyStatements = from mStatement in statements
orderby mStatement.StatementDate descending
group mStatement by mStatement.StatementDate
into msStatement
select new
{
StatementDate =
mStatement.Documents.Date.,//no Intellisense
};
我已編輯我的帖子現在清楚了嗎? – Snehal