You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 onlyGuid VARCHAR
, without theUNIQUE
keyword, and also that Guid is created as an index (I understand this because I looked at the source code andUniqueAttribute
inherits fromIndexedAttribute
)So why is
UNIQUE
not in the DDL?The text was updated successfully, but these errors were encountered: