Hi,
If your existing tables different from ASP.NET Zero tables, no problem. If there are tables that have same name, then ef gives error, and dont run migrations.
If you run update-database command on ASP.NET Zero project, your existing tables wont effect.
Advice: Before migration, create a database backup.
Hi,
Could you explain it a bit more clearly about following? In title you said "signalr error after upgrade to 2.0.x" and in body you said "We recently upgraded to version 4 .0"
Do you mean that you use aspnet-zero 4.0 and ABP 2.0.x?
Hi,
Actually, "DisplayName" type is not string, it's type is "LocalizableString".
"MapTo<T>" method converts it to localized string (LocalizableString to String), automatically. So magic is in Abp framework :)
Check this: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/6076a126f975ea1721348f24c89ed7b44e9f2d6e/src/Abp.AutoMapper/AutoMapper/AbpAutoMapperModule.cs#L95">https://github.com/aspnetboilerplate/as ... ule.cs#L95</a>
Hi,
Actually, this question is not directly related with ABP. This topic is mostly related to .net technologies.
This link can give you an idea <a class="postlink" href="http://stackoverflow.com/questions/33758823/using-the-old-aspnet-membership-with-aspnet-vnext">http://stackoverflow.com/questions/3375 ... pnet-vnext</a>
Hi,
Remove only lines that give errors.
Hi,
You are right. But now, if you are using aspnet zero with angular, then menu items defined as hard-coded in a typescript file.
For other templates (without angular), "order" propery is added, since it can be expanded, and also they are defined as hard-coded in a class, too.
Actualy "order" property is reasonable, if you store menu item in DB.
Hi,
In latest ABP CreateAsync(tenant) method type is void, so if you remove the CheckErrors, it works.
Hi,
It may be a bug with Swashbuckle. We fixed it in latest version. Also, you can fixed it, too, with doing following changes: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/commit/49b9528e479a10fd5b9936cd87e6bb5885e35b87">https://github.com/aspnetzero/aspnet-ze ... 5885e35b87</a>
Error is about parameter type. In your example, type is "model binding", but it should be "query" type. If you do above changes (or download latest version of aspner-zero-core), it must be work.
Hi,
It may be about following line:
CheckErrors(await TenantManager.CreateAsync(tenant));
Solution If you change it to following instead:
await TenantManager.CreateAsync(tenant);
Possible cause of error CheckErrors method expect a parameter that's type is
Microsoft.AspNet.Identity.IdentityResult
But in ABP v2.0.0 following line is void type.
await TenantManager.CreateAsync(tenant);