Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've read the docs, browsed the source and applied my Google and Bing Foo but can not determine

How to set the description on a SQL column using EF Core Code First.

Help!

What I have tried:

I've read the docs, browsed the source and applied my Google and Bing Foo
Posted
Updated 16-Nov-16 7:23am
v3
Comments
Richard Deeming 16-Nov-16 13:45pm    
What do you mean by "the description"? Are you trying to set an extended property?
Matthew Dennis 16-Nov-16 14:08pm    
exactly. we (Chris) likes to make sure that all columns are described in our databases.
Richard Deeming 16-Nov-16 14:25pm    
EF6 didn't have a way to do that without executing custom SQL commands - for example, http://stackoverflow.com/a/19024356/124386[^].

I can't see anything obvious in EFCore[^] that would make this any easier, but I've not had a chance to use it yet.
Matthew Dennis 16-Nov-16 14:27pm    
I got feedback from Rowan Miller of the EF team. There is no way out of the box.
Richard Deeming 16-Nov-16 14:39pm    
It's good to have contacts! :)

You didn't persuade him to join CodeProject and post that as an answer?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900