enkodellc / blazorboilerplate

Blazor Boilerplate / Starter Template with MudBlazor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with migration (Postgresql)

Alexander-Zender opened this issue · comments

First of, great work on the new release @enkodellc !

I was setting up a new project with the new release using postgresql, when I encountered an issue.
When creating the migration, I encountered this error:
image

I could pinpoint it to the Company and Person model. They use a Point object for the Location property.
When commenting it out or adding the [NotMapped] annotation, the migration works.

I do not know if this is a postgresql only issue.

Additionally, the datetime2 data type used for the AuditTrail, as well as nvarchar used when using the MaxLengh Annotation are not supported too
one can manually change it all but that might not be the best approach

Additionally something was changed to ngpsql in version 6 with the datetime:
https://www.npgsql.org/doc/release-notes/6.0.html#major-changes-to-timestamp-mapping

I was able to generate the database but not yet add any entities with datetime fields

@Alexander-Zender do you want to submit a PR? Since you are using Postgres and I do not have it on my system it would be best for you do that and contribute. Thanks

@enkodellc Yes, Im preparing one.
I encountered that the login is broken, with some metadata can not be found.

image

This error is also in the demo version, as well as some pages are simply broken (paging or virtual table).

image

The current release seem to not be stable.

Update:

The error seem to be that the baseapiclient can not process/receive(?) the metadata from the breeze controller.
image

When it is initialized, the applicationcontroller metadata function is called however and returns the metadata. However, the BaseApiClient never receives it.
I tested the metadata API call manually and a valid json is returned. The issue is somewhere in the middleware(?)

@enkodellc Postgresql support PR open, as far as I can see it works with MS SQL and Postgresql just requires a new migration creation for each.

There might be a dirty fix in the startup file. However, I did not know how to else access the variable.
Maybe you have more expertise for this

@enkodellc Could you check out the breeze problems I have mentioned above?

Sorry I am going on Vacation and have been busy. @GioviQ do you have a minute to review. If not I will have to check when I get back. Thanks. I merged all the changes in a Postgres Branch.

It seems there are features partially copied from Maui branch like Person entities. I deleted Person, but then other pages have troubles.

@enkodellc Any updates on the last release issues?

@GioviQ Do you have any updates whats happening?