我正在使用 Breeze.Sharp 将实体从数据库中取出。尝试检索“结果”时出现此错误:
找不到 CLR 类型的默认资源名称:
AHS.Apps.Call.WPF.Entities.CallActionCategory
我已经逐步浏览了 Breeze 代码,但它几乎没有文档。这是我的方法:
public async Task<ObservableCollection<CallActionCategory>> CallActionCategories()
{
var query = EntityQuery.From<Entities.CallActionCategory>();
IEnumerable<CallActionCategory> result = await (_entityManager.ExecuteQuery<Entities.CallActionCategory>(query));
ObservableCollection<CallActionCategory> observe = new ObservableCollection<CallActionCategory>(result);
await _entityManager.FetchMetadata();
return observe;
}