private static void InsRelacao(this IAbstractDataContext context, object obj, RelacaoAttribute relacao, bool inRelacao)
        {
            if (relacao == null)
            {
                return;
            }

            if (obj is IList)
            {
                context.InsLista(obj as IList, inRelacao);
            }
            else if (obj is object)
            {
                context.InsObjeto(obj as object);
            }
        }
Example #2
0
 public Migracao(IAbstractDataContext dataContext)
 {
     _dataContext = dataContext;
 }
 public static void RoolBackTransaction(this IAbstractDataContext context) =>
 context.GetConexao().RoolBackTransaction();
 public static void CommitTransaction(this IAbstractDataContext context) =>
 context.GetConexao().CommitTransaction();
        //-- transaction

        public static void BeginTransaction(this IAbstractDataContext context) =>
        context.GetConexao().BeginTransaction();
Example #6
0
 public AbstractRepository(IAbstractDataContext dataContext)
 {
     _dataContext = dataContext ?? throw new ArgumentNullException(nameof(dataContext));
 }
Example #7
0
 public MigracaoEntRepository(IAbstractDataContext dataContext) : base(dataContext)
 {
 }
Example #8
0
 public PermissaoRepository(IAbstractDataContext dataContext) : base(dataContext)
 {
 }
Example #9
0
 public AmbienteRepository(IAbstractDataContext dataContext) : base(dataContext)
 {
 }
Example #10
0
 public UsuarioRepository(IAbstractDataContext dataContext) : base(dataContext)
 {
 }
Example #11
0
 public DataContextTests()
 {
     _dataContext = Resolve <IAbstractDataContext>();
 }
Example #12
0
        public static void GravarVersao(IAbstractDataContext dataContext, string versaoModel)
        {
            var migracaoEnt = new MigracaoEnt(_nomeEntidade, versaoModel);

            dataContext.Set <MigracaoEnt>().AddOrUpdate(migracaoEnt);
        }
Example #13
0
 public TerminalRepository(IAbstractDataContext dataContext) : base(dataContext)
 {
 }
Example #14
0
 public TipoRepositoryContext(IAbstractDataContext dataContext) : base(dataContext)
 {
 }
Example #15
0
 public Repository(IAbstractDataContext dataContext)
 {
     _dataContext = dataContext;
     _dbSet       = dataContext.Set <TObject>();
 }
Example #16
0
 public GrupoEmpresaRepository(IAbstractDataContext dataContext) : base(dataContext)
 {
 }
Example #17
0
 public QueryableProvider(IAbstractDataContext dataContext)
 {
     _dataContext = dataContext;
 }
Example #18
0
 public DbSet(IAbstractDataContext dataContext)
 {
     _dataContext = dataContext;
 }
Example #19
0
 public LogAcessoRepository(IAbstractDataContext dataContext) : base(dataContext)
 {
 }