在嘗試用 WCF 內建的 Async 方法時卡在
The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task<?>'.
'await' 運算子只能在非同步方法使用。請考慮以 'async' 修飾詞標記此方法...
2016年3月25日 星期五
2016年2月24日 星期三
2016年2月16日 星期二
2016年2月4日 星期四
【Entity Framework】The mapping of CLR type to EDM type is ambiguous
在把 Domain 的 Class 轉入 EF 的同名 Class 時出的錯
The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'ClassA'. Previously found CLR type 'Domain.ClassA', newly found CLR type 'EDMX.ClassA'.
指定的結構描述無效。錯誤:
將 CLR 型別對應至 EDM 型別模稜兩可,因為有多個 CLR 型別符合 EDM 型別 'ClassA'。先前找到的 CLR 型別為 'Domain.ClassA',新找到的 CLR 型別為 'EDMX.ClassA'。
The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'ClassA'. Previously found CLR type 'Domain.ClassA', newly found CLR type 'EDMX.ClassA'.
指定的結構描述無效。錯誤:
將 CLR 型別對應至 EDM 型別模稜兩可,因為有多個 CLR 型別符合 EDM 型別 'ClassA'。先前找到的 CLR 型別為 'Domain.ClassA',新找到的 CLR 型別為 'EDMX.ClassA'。
2016年2月1日 星期一
【MS-SQL】An attempt to attach an auto-named database for file ... failed.
EF 嘗試存直接附屬於專案的 mdf 時發生的 inner exception
An attempt to attach an auto-named database for file
D:\\...\\xxx.mdf failed.
A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
An attempt to attach an auto-named database for file
D:\\...\\xxx.mdf failed.
A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
訂閱:
文章 (Atom)