Entity Framework Core , client side computed columns

.net-core c# entity-framework entity-framework-core

Question

I'm looking for a simple solution to have a client-side calculated column. By using: https://docs.microsoft.com/en-us/ef/core/modeling/relational/computed-columns, it is already possible to have calculated columns on the server.

I would want something like this instead:

modelBuilder.Entity<Person>()
 .Property(p => p.DeptName)
 .HasClientComputedColumn( (context, entity) =>{        
            return myStaticMap[entity.Id];      
        });

Is using EF core a viable option?

1
0
9/12/2017 8:32:46 AM

Accepted Answer

ZZZ_tmp
2
9/12/2017 12:48:18 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow