c# - Map System.Uri using Entity Framework Fluent Api -
pretty simple question. have model has property system.uri
type. uri
s don't have default parameterless constructor, , no id field. there way override model generation store in db in custom way (e.g. string
)? in nhibernate, i've done before implementing iusertype
, not find yet similar mechanism in codefirst.
obviously, create custom type uses uri
under hood , exposes regular mappable properties & constructor, i'm curious if there's way map system type don't have make wrapper that.
ef not support custom type mappings nh.
for system.uri in particular, i'd use wrapper property , map actual value string; it's not bad.
Comments
Post a Comment