For User definied Types (Udt) a general TypeMapper for MSSQL would be nice to have.
Example
For Spatial-Types (e.g. SqlGeography) I use dotMorten's Microsoft.SqlServer.Types. With no additional configuration, you can query spatial-data. Doing Updates or Inserts, you have to define somethings for each property:
FluentMapper.Entity<Address>().PropertyValueAttributes(e => e.Geography, new PropertyValueAttribute[]{
new SqlDbTypeAttribute(System.Data.SqlDbType.Udt),
new UdtTypeNameAttribute("Geography")
});
For User definied Types (Udt) a general TypeMapper for MSSQL would be nice to have.
Example
For Spatial-Types (e.g. SqlGeography) I use dotMorten's Microsoft.SqlServer.Types. With no additional configuration, you can query spatial-data. Doing Updates or Inserts, you have to define somethings for each property: