using IBatisNet.DataMapper;
using IBatisNet.DataMapper.Configuration;
using System.IO;
using System.Reflection;
namespace FarmProductsDAL
{
public class Mapper
{
/// <summary>
/// FRAMEWORK MAP 名字空间前缀
/// </summary>
public const string FrameworkMap = "FarmProductsDAL";
private static volatile ISqlMapper _insuranceMapper;
public static ISqlMapper Insurance
{
get
{
if (_insuranceMapper == null)
{
lock (typeof(ISqlMapper))
{
if (_insuranceMapper == null)
{
_insuranceMapper = ConfigWithFileName("FarmProductsDAL.