簡體   English   中英

系統找不到指定的文件,Insight.Database Micro Orm

[英]The system cannot find the file specified,Insight.Database micro orm

我正在使用新的Insight.Databse微型ORM弄污我的手。當我嘗試通過使用ConnectionStringSettings上的擴展方法將對象插入數據集時,將其拋出錯誤上方。我擁有表並存儲了根據文檔在數據庫中創建的過程。這是引發異常的部分(在倉庫中我稱為InsertCustomer的地方)

公共類CustomerRepository {公共靜態異步任務InsertCustomer(客戶托管){var connection = ConfigSettings.ConnectionString; var repo = connection.As(); 返回等待repo.InsertCustomer(cust); }}

公共接口ICustomerRepository {Task InsertCustomer(Customer cust); }

任何幫助,將不勝感激,謝謝RJ

如果您收到NotImplementedException,並運行v4.1.0至4.1.3,則可能是在注冊數據庫提供程序時遇到了問題。

我建議使用v4.1.4或更高版本,並確保您為數據庫注冊了提供程序。

看到

https://github.com/jonwagner/Insight.Database/wiki/Installing-Insight

如果您還有其他問題,可以在github上發布問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM