You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicasyncTaskTe(){try{TestClassc=newTestClass(){a="123"};vardata=newTestTable(){j=JObject.FromObject(c),id=1,t=c};//正常awaitdb.InsertOrUpdate<TestTable>().SetSource(data).ExecuteAffrowsAsync();//System.NullReferenceException: Object reference not set to an instance of an object.awaitdb.InsertOrUpdate<TestTable>().SetSource(data).ExecutePgCopyAsync();//有jsonmap 字段t 不加NoneParameter()报错 图1为错误信息 //去掉jsonmap 字段t 不管加不加NoneParameter()都报错 图2为错误信息awaitdb.Insert<TestTable>().NoneParameter().OnConflictDoUpdate().ExecuteAffrowsAsync();}catch(Exceptione){Debugger.Break();}}[Table(Name="test")]publicclassTestTable{[Column(IsPrimary=true)]publicintid{get;set;}publicJObjectj{get;set;}[JsonMap]publicTestClasst{get;set;}}publicclassTestClass{publicstringa{get;set;}}
数据库版本
3.5.202
安装的Nuget包
.net framework/. net core? 及具体版本
.net9
The text was updated successfully, but these errors were encountered:
问题描述及重现代码:
数据库版本
3.5.202
安装的Nuget包
.net framework/. net core? 及具体版本
.net9
The text was updated successfully, but these errors were encountered: