Ejemplo n.º 1
0
        public DapperRepository()
        {
            if (FluentMapper.EntityMaps.IsEmpty)
            {
                FluentMapper.Initialize(c =>
                {
                    c.AddMap(new BanknoteDapperMap());
                    c.AddMap(new SaleDapperMap());
                    c.AddMap(new ProductDapperMap());
                    c.ForDommel();
                });
            }

            AppConfigurationMannager.Init();

            _connection = new NpgsqlConnection(AppConfigurationMannager.GetConnectionString("PgsqlConnection"));
        }
Ejemplo n.º 2
0
 public static void Init()
 {
     AppConfigurationMannager.Init();
 }