Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# ef dynamic ApplyConfiguration

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
   base.OnModelCreating(modelBuilder);

   modelBuilder.ApplyConfigurationsFromAssembly(typeof(UserConfiguration).Assembly); // Here UseConfiguration is any IEntityTypeConfiguration
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to disable scale anti-aliasing in monogame 
Csharp :: music file explorer c# 
Csharp :: The anti-forgery cookie token and form field token do not match. 
Csharp :: how to connect google play services in unity 
Csharp :: how to seperate front of decimal and back of decimal in C# 
Csharp :: C# walk down a tree and back 
Csharp :: winforms lifecycle 
Csharp :: Using a Views in .net and c# 
Csharp :: c# excel fix first row 
Csharp :: BindableDynamicDictionary 
Csharp :: using randomly chars to build a string 
Csharp :: c# webrtc dll 
Csharp :: c# return propertty from each object in object lpist 
Csharp :: linq contains null 
Csharp :: stack in c# 
Csharp :: Cursor Button Lock and Area limitation 
Csharp :: c# treeview keep selected node highlight 
Csharp :: c# open folder in explorer zugriff verweigert 
Csharp :: c sharp if statements 
Csharp :: binary addition c# 
Csharp :: C# Associativity of Operators 
Csharp :: PUN 2 Network Transform View Jittery Movement 
Csharp :: dotnet core vue in subdirectory 
Csharp :: input string was not in a correct format convert to double 
Csharp :: new guid c# always returns 0 
Csharp :: localhost ssl certificate error in visual studio 2022 .net 6 
Csharp :: c# create dll runtime 
Csharp :: nullable IList 
Csharp :: CRUD configuration MVC with Firebase 
Csharp :: TTTTTTTTTTTTTTTTTTTTESTTT 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =