Skip to content

Enhancement: TypeMapper for MSSQL (Udt and Spatial) #1023

@Garios

Description

@Garios

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")
        });

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfixedThe bug, issue, incident has been fixed.requestA request from the community.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions