我正在使用azure mobile sdk通过以下链接实现脱机同步功能:
https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-dotnet-backend-how-to-use-server-sdk
对于数据库,我使用的是azuremysql服务,并在app service中配置了连接字符串。当我得到ToToTable集合时,我得到了一些例外。在mysql提供程序清单中找不到存储类型“rowversion”
有没有办法配置和运行azure移动服务来使用我的sql?用于mysql的nuget包:
mysql.data文件
mysql.data.entityframework
如果需要,请查找完整的堆栈跟踪。
{“message”:“出现错误。”,“exceptionmessage”:“在mysql提供程序清单中找不到存储类型‘rowversion’,”exceptiontype”:“system.invalidoperationexception”,“stacktrace”:“at system.data.entity.utilities.dbprovidermanifestextensions.getstoretypefromname(dbprovidermanifest providermanifest,字符串名称)\r\n在system.data.entity.modelconfiguration.configuration.properties.primitive.primitivepropertyconfiguration.configurecolumn(edmproperty列,entitytype表,dbprovidermanifest providermanifest)\r\n
在system.data.entity.modelconfiguration.configuration.properties.primitive.binarypropertyconfiguration.configurecolumn(edmproperty列,entitytype表,dbprovidermanifest providermanifest)\r\n
在system.data.entity.modelconfiguration.configuration.properties.primitive.primitivepropertyconfiguration.configure(edmproperty列,entitytype表,dbprovidermanifest providermanifest,boolean allowoverride,boolean fillfromexistingconfiguration)\r\n在system.data.entity.modelconfiguration.configuration.properties.primitive.primitivepropertyconfiguration.<>c\u displayclass4.b\u 3(tuple2 pm)\r\n在system.data.entity.utilities.ienumerableextensions.each[t](ienumerable 1 ts,操作1操作)\r\n在system.data.entity.modelconfiguration.configuration.properties.primitive.primitivepropertyconfiguration.configure(ienumerable1 propertymappings,dbprovidermanifest,boolean allowoverride,boolean fillfromexistingconfiguration)\r\n位于system.data.entity.modelconfiguration.configuration.types.structuraltypeconfiguration.configurepropertymappings(ilist`1 propertymappings,dbprovidermanifest providermanifest,boolean allowoverride)\r\n位于system.data.entity.modelconfiguration.configuration.types.entitytypeconfiguration.configurepropertymappings(dbdatabasemapping databasemapping,entitytype entitytype,dbprovidermanifest providermanifest,boolean allowoverride)\r\n在system.data.entity.modelconfiguration.configuration.types.entitytypeconfiguration.configure(entitytype entitytype,dbdatabasemapping databasemapping,dbprovidermanifest providermanifest)\r\n位于system.data.entity.modelconfiguration.configuration.modelconfigureEntityTypes(dbdatabasemapping databasemapping,icollection1 entitysets,dbprovidermanifest providermanifest)\r\n位于system.data.entity.modelconfiguration.configuration.modelconfiguration(dbdatabasemapping databasemapping,dbprovidermanifest providermanifest)\r\n位于system.data.entity.dbmodelbuilder.build(dbprovidermanifest providermanifest,dbproviderinfo providerinfo)\r\n在system.data.entity.dbmodelbuilder.build(dbconnection providerconnection)\r\n在system.data.entity.internal.lazynternalcontext.createmodel(lazynternalcontext internalcontext)\r\n在system.data.entity.internal.retrylazy2.getvalue(tinput input input)\r\n
在system.data.entity.internal.lazyinternalcontext.initializecontext()\r\n在system.data.entity.internalcontext.initialize()\r\n在system.data.entity.internalcontext.getentitysetandbasetypefortype(type entitytype)\r\n在system.data.entity.internalcontext.linq.internalset1.initialize()\r\n在system.data.entity.internal.linq.internalset1.get\u internalcontext()\r\n位于system.data.entity.infrastructure.dbquery1.system.linq.iqueryable.get\u provider()\r\n位于system.web.http.odata.query.handlenullpropagationoptionhelper.getdefaulthandlenullpropagationoption(iqueryable query)\r\n位于system.web.http.odata.query.orderbyqueryoption.applyto(iqueryable查询,odataquerysettings查询设置)\r\n在system.web.http.odata.query.odataqueryoptions.applyto(iqueryable查询,odataquerysettings查询设置)\r\n在system.web.http.odata.enablequeryattribute.applyquery(iqueryable查询设置,odataqueryoptions查询选项)\r\n位于system.web.http.odata.enablequeryattribute.executequery(对象响应,httprequestmessage请求,httpactiondescriptor actiondescriptor)\r\n在system.web.http.odata.enablequeryattribute.onactionexecuted(httpactionexecutedcontext actionexecutedcontext)\r\n在system.web.http.filters.actionfilterattribute.onactionexecutedasync(httpactionexecutedcontext actionexecutedcontext,cancellationtoken cancellationtoken)\r\n---来自引发异常的上一个位置的堆栈结束跟踪---\r\n在system.runtime.compilerservices.taskawaiter.ThrowForOnSuccess(任务任务)\r\n在system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(任务任务任务任务)\r\n在system.web.http.filters.actionfilterattribute.d\uu 5.movenext()\r\n---从引发异常的上一个位置开始的堆栈结束跟踪---\r\n在system.runtime.compilerservices.taskawaiter.throwfornonsuccess(任务任务)\r\n在system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(任务任务任务)\r\n在system.web.http.filters.actionfilterattribute.d\uu 0.movenext()\r\n---来自引发异常的上一个位置的堆栈结束跟踪---\r\n在system.runtime.compilerservices.taskawaiter.throwfornonsuccess(任务任务)\r\n在system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(任务任务任务)\r\n在system.web.http.filters.actionfilterattribute.d\uu 5.movenext()\r\n---来自引发异常的上一个位置的堆栈结束跟踪---\r\n在system.web.http.filters.actionfilterattribute.d\uu 5.movenext()\r\n---来自引发异常的上一个位置的堆栈结束跟踪---\r\n在system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task)\r\n在system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task)\r\n在system.web.http.filters.actionfilteratribute.d\u 0.movenext()\r\n---来自引发异常的上一个位置的堆栈结束跟踪---\r\nsystem.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task)\r\n在system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task)\r\n在system.web.http.controllers.actionfilterresult.d\u 2.movenext()\r\n---从引发异常的上一个位置开始的堆栈结束跟踪---\r\nsystem.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task)\r\n在system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task)\r\n在system.web.http.dispatcher.httpcontrollerdispatcher.d\u1.movenext()“}
暂无答案!
目前还没有任何答案,快来回答吧!