Xamarin/IOS/Azure-No';id';在类型上找到成员
我有一个用Xamarin Android开发的应用程序,它运行得非常好。 我正在使用IOS Xamarin版本,但在激活异步脱机Azure时遇到问题。 在emulator中,当testo设备生成以下错误时,emulator工作 “在类型'FM.Model.Categoria'上找不到'id'成员。” 我看过几个用户论坛,都有相同的错误,但没有解决方案解决我的问题。 有人知道会是什么吗?Xamarin/IOS/Azure-No';id';在类型上找到成员,ios,azure,asynchronous,xamarin,offline,Ios,Azure,Asynchronous,Xamarin,Offline,我有一个用Xamarin Android开发的应用程序,它运行得非常好。 我正在使用IOS Xamarin版本,但在激活异步脱机Azure时遇到问题。 在emulator中,当testo设备生成以下错误时,emulator工作 “在类型'FM.Model.Categoria'上找不到'id'成员。” 我看过几个用户论坛,都有相同的错误,但没有解决方案解决我的问题。 有人知道会是什么吗? 我需要一些权限,因为仿真器可以工作?看起来您在获取同步表之前没有定义存储。这里需要一种自然的秩序: 创建客户端
我需要一些权限,因为仿真器可以工作?看起来您在获取同步表之前没有定义存储。这里需要一种自然的秩序:
try
{
CurrentPlatform.Init();
SQLitePCL.CurrentPlatform.Init();
// Initialize the Mobile Service client with the Mobile App URL, Gateway URL and key
client = new MobileServiceClient(applicationURL);
// Initialize the local offline store
await InitializeStoreAsync();
// Create an MSTable instance to allow us to work with the TodoItem table
categoriaTable = client.GetSyncTable<Model.Categoria>();
}
试试看
{
CurrentPlatform.Init();
SQLitePCL.CurrentPlatform.Init();
//使用移动应用程序URL、网关URL和密钥初始化移动服务客户端
客户端=新的MobileServiceClient(applicationURL);
//初始化本地脱机存储
等待初始值estoreasync();
//创建一个MSTable实例以允许我们使用TodoItem表
categoriaTable=client.GetSyncTable();
}
看起来您在获取同步表之前没有定义存储。这里需要一种自然的秩序:
try
{
CurrentPlatform.Init();
SQLitePCL.CurrentPlatform.Init();
// Initialize the Mobile Service client with the Mobile App URL, Gateway URL and key
client = new MobileServiceClient(applicationURL);
// Initialize the local offline store
await InitializeStoreAsync();
// Create an MSTable instance to allow us to work with the TodoItem table
categoriaTable = client.GetSyncTable<Model.Categoria>();
}
试试看
{
CurrentPlatform.Init();
SQLitePCL.CurrentPlatform.Init();
//使用移动应用程序URL、网关URL和密钥初始化移动服务客户端
客户端=新的MobileServiceClient(applicationURL);
//初始化本地脱机存储
等待初始值estoreasync();
//创建一个MSTable实例以允许我们使用TodoItem表
categoriaTable=client.GetSyncTable();
}
在模拟器中完全工作,现在当我尝试在错误设备上运行时。
必须启用任何权限吗?
我找不到任何关于错误原因的报告。
我试图通知DB文件的路径,但什么都没有。在模拟器中完全工作,现在当我尝试在设备上运行错误时。 必须启用任何权限吗? 我找不到任何关于错误原因的报告。
我试图通知DB文件的路径,但什么也没有。Adrian Hall所做的更改在您运行“store.DefineTable();”InitializeStoreSync()时通知并生成了相同的错误。您可能需要清除脱机缓存-只需删除底层文件。此外,检查文件夹的权限-通常,您不必处理文件夹路径-只需指定文件名-它会被放置在正确的位置。我必须使用重置选项来清除所有内容。我已经把BD放在只说明名称的地方,也放在一个方向上,并且总是得到相同的错误。Adrian Hall做了更改,当您运行“store.DefineTable();”InitializeStoreAsync()时,通知并生成了相同的错误。您可能需要清除脱机缓存-只需删除底层文件。另外,检查文件夹的权限-通常,您不必处理文件夹路径-只需指定文件名-它会被放置在正确的位置。我必须使用重置选项来清除所有内容。我已经把BD只说明了名称,也走了一条路,总是得到相同的错误。
try
{
CurrentPlatform.Init();
SQLitePCL.CurrentPlatform.Init();
// Initialize the Mobile Service client with the Mobile App URL, Gateway URL and key
client = new MobileServiceClient(applicationURL);
// Initialize the local offline store
await InitializeStoreAsync();
// Create an MSTable instance to allow us to work with the TodoItem table
categoriaTable = client.GetSyncTable<Model.Categoria>();
}