Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データベースにはまったく同じテーブルが 2 つあります。一方は他方のアーカイブです。
Entity Framework と Linq を使用してエンティティ タイプを変更せずにアーカイブ テーブルからデータを取得するにはどうすればよいですか?
あなたはいつでもできる.Select(x=>new SomeTypeOfObject{Prop1 = x.Prop1, Prop2 = x.Prop2})
.Select(x=>new SomeTypeOfObject{Prop1 = x.Prop1, Prop2 = x.Prop2})