-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Model configuration: Ability to override IS NOT NULL clauses of an index #6794
Comments
This is not possible. Assigning to 1.2 to look at providing this functionality. |
Fixed in 428a328 |
|
@Davilink I filed dotnet/EntityFramework.Docs#610 for the docs. We will not be porting this fix to the 1.x versions of EF Core--the bar is very high to get patch changes into those releases, and this issue does not meet that bar. |
@ajcvickers Thx for the quick response. |
Assume that I have the below entity:
Inside
OnModelCreating
, I also have this to create a multi-column unique index:This causes EF Core to generate something similar to below:
However, I want not to allow
DeletedOn
column to be null for this index. So, I am try to make EF Core to generate the below index creation script for me:QUESTION: Is this possible to do this with EF Core fluent API?
I dug a bit into the fluent API and was able to find some things related to
HasAnnotation
API but was not able to understand enough to achieve this.The text was updated successfully, but these errors were encountered: