Skip to content

Storing an Empty String vs Null String #2610

@ghost

Description

For string fields In EF < 7.0, there's no simple way to store the distinction between knowing a string value is empty, vs not knowing what the string value is. In other words EF < 7.0 assumes an empty string is the same thing as a null string.

How will EF7+ allow for storing a NULL in VARCHAR() type database field to signify that the string value is not know, v.s. storing a VARCHAR value of length 0; i,e, an empty string, signifying the value is know and it is empty?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions