Skip to content

Instantly share code, notes, and snippets.

@starteleport
Created February 11, 2013 11:54
Show Gist options
  • Save starteleport/4754058 to your computer and use it in GitHub Desktop.
Save starteleport/4754058 to your computer and use it in GitHub Desktop.
Person class mapping
<?xml version="1.0" encoding="utf-8" ?>
<Types
xmlns = "urn:schemas-bltoolkit-net:typeext"
xmlns:m = "urn:schemas-bltoolkit-net:mapping"
xmlns:da = "urn:schemas-bltoolkit-net:dataaccess">
<Type Name="Person" da:TableName="Persons">
<Member Name="Id" m:MapField="UserId" da:PrimaryKey="1" da:Identity="1" />
<Member Name="MiddleName" m:MapField="MI" />
<Member Name="IsActive">
<m:MapValue OrigValue="True" Value="Y" Type="System.String" OrigValue-Type="System.Boolean" />
<m:MapValue OrigValue="False" Value="N" Type="System.String" OrigValue-Type="System.Boolean" />
</Member>
</Type>
</Types>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment