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.
Comments
Post a Comment