Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blank String Default Value in Entity Framework Designer

Is it possible to assign a blank string (i.e. "") as a Default Value in the Entity Framework's EDMX designer? The only technique I've found is to edit the edmx file manually using a text editor

like image 340
Wheelie Avatar asked Dec 05 '08 08:12

Wheelie


1 Answers

I realize that this is an extremely old question, but for posterity's sake, in the EF4 designer you can type a space in the properties window field, then hit backspace, leaving the field empty instead of the default value of (None). For strings, this seems to default to String.Empty.

like image 140
Chris Shain Avatar answered Sep 28 '22 22:09

Chris Shain