Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The UniqueAttribute is not used in the DDL #1248

Open
CodingOctocat opened this issue Jul 27, 2024 · 0 comments
Open

The UniqueAttribute is not used in the DDL #1248

CodingOctocat opened this issue Jul 27, 2024 · 0 comments

Comments

@CodingOctocat
Copy link

I found that adding UniqueAttribute does not generate the correct DDL.

My Model class has a GUID attribute [Unique] public string Guid { get; set; }, however, when I look at the database using SQLiteStudio, I find that its DDL is only Guid VARCHAR, without the UNIQUE keyword, and also that Guid is created as an index (I understand this because I looked at the source code and UniqueAttribute inherits from IndexedAttribute)

So why is UNIQUE not in the DDL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant