私はasp.netコア2.0とEFコア2.0を使用しています。 DbSetには3つのクラスがあります。 public class Person
{
[Key]
public int PersonId { get; set; }
public string Name { get; set; }
}
public class Pa
特定のIDを持つサイトを含むすべてのカテゴリのリストを取得しようとしています。以下は、少し修正した足場生成法です。 System.ArgumentException: Expression of type 'System.Nullable`1[System.Guid]' cannot be used for parameter of type 'System.Guid' of method 'Bo
私はEF6で.Net 4.6で動作するコードを持っていますが、ef.coreでは動作しません。コンパイラは、 '設定' は基本的に、私は文字列名によってオブジェクトを取得しています1つの引数(CS1501) Type type = Type.GetType("ContextName.SomeModel");
if (type == null) return null;
var