Thursday, January 28, 2021

Entity Framework: SqlException: Invalid column name 'Discriminator'.

 This error generally means there is a derived class from EF POCO base class which hasn't been marked with [NotMapped] attribute. More explanation can be found at 


https://stackoverflow.com/questions/6553935/ef-code-first-invalid-column-name-discriminator-but-no-inheritance

No comments:

Regex Email validation in c# dot net core

 Use this regex /^_?[a-zA-Z0-9]([a-zA-Z0-9]*[._+-])*[a-zA-Z0-9_]+@(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))*\.[A-...