DataContext.SqlModelMapper Property
.NET Standard 2.x
Gets an ISqlModelMapper object created by the current DataContext.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Syntax
public ISqlModelMapper SqlModelMapper { get; }
Property Value
SnapObjects.Data.ISqlModelMapper
An ISqlModelMapper object created by the current DataContext.
Examples
The following code example demonstrates how to get the type of the SqlModelMapper object created by the DataContext object.
using System;
namespace Appeon.ApiDoc.DataContextExamples
{
public class SqlModelMapperExample
{
private readonly SchoolContext _context;
public SqlModelMapperExample(SchoolContext context)
{
_context = context;
}
public void Example()
{
var mapper = _context.SqlModelMapper;
Console.WriteLine("Type = {0}", mapper.ToString());
/* This code example produces the following output:
Type = SnapObjects.Data.SqlModelMapper
*/
}
}
}
Applies to
.NET Standard
2.x