次のような Entity クラス (自動生成) があります。
namespace FicServerData
{
using System;
using System.Collections.Generic;
public partial class Snapshot
{
public Snapshot()
{
this.ComponentQuotes = new HashSet<SnapshotPart>();
}
public int Id { get; set; }
public System.DateTime Time { get; set; }
public string Machine { get; set; }
public string AppName { get; set; }
public virtual ICollection<SnapshotPart> ComponentQuotes { get; set; }
}
}
次に、次のようなユーティリティ部分クラスを作成しました。
namespace FicServerData
{
public partial class Snapshot
{
public IEnumerable<Quote> DerivedQuotes
{
get
{
...
}
}
}
}
したがって、これらは両方とも同じプロジェクト内のファイルであり、同じ名前空間で確認できます。このプロジェクト内で、追加したプロパティに問題なくアクセスできます。ただし、それを参照するプロジェクトからはアクセスできません。VS が作成したエンティティ クラスにしかアクセスできません。ここで何が欠けていますか?