The property must be a valid entity type and the property should have a non-abstract getter and setterFor collection properties the type must implement ICollection<T> where T is a valid entity type.
下面我可以有一个条件来执行视图/表,它将加载到AccountDataModel类中。 dbcontext.AccountDataModel.FromSql($"select * from account where id=123").FirstOrDefault(); 如果我只想检索1到2列,如何不使用类模型进行检索 示例:从id=123所在的帐户中选择名称 我总是需要一个类模型吗?