c# - Can Entity Framework create Objects with default values for Non-Null columns? -


i thought saw somewhere being able generate object in ef non-null values filled in generic values.

i tried using context.createobject<myentity>(), still getting errors trying save null data non-null column.

was mistaken in thinking this? or have wrong syntax?

in model designer, can enter default value on property sheet each field.

enter image description here


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -