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); } }
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();
public AbstractRepository(IAbstractDataContext dataContext) { _dataContext = dataContext ?? throw new ArgumentNullException(nameof(dataContext)); }
public MigracaoEntRepository(IAbstractDataContext dataContext) : base(dataContext) { }
public PermissaoRepository(IAbstractDataContext dataContext) : base(dataContext) { }
public AmbienteRepository(IAbstractDataContext dataContext) : base(dataContext) { }
public UsuarioRepository(IAbstractDataContext dataContext) : base(dataContext) { }
public DataContextTests() { _dataContext = Resolve <IAbstractDataContext>(); }
public static void GravarVersao(IAbstractDataContext dataContext, string versaoModel) { var migracaoEnt = new MigracaoEnt(_nomeEntidade, versaoModel); dataContext.Set <MigracaoEnt>().AddOrUpdate(migracaoEnt); }
public TerminalRepository(IAbstractDataContext dataContext) : base(dataContext) { }
public TipoRepositoryContext(IAbstractDataContext dataContext) : base(dataContext) { }
public Repository(IAbstractDataContext dataContext) { _dataContext = dataContext; _dbSet = dataContext.Set <TObject>(); }
public GrupoEmpresaRepository(IAbstractDataContext dataContext) : base(dataContext) { }
public QueryableProvider(IAbstractDataContext dataContext) { _dataContext = dataContext; }
public DbSet(IAbstractDataContext dataContext) { _dataContext = dataContext; }
public LogAcessoRepository(IAbstractDataContext dataContext) : base(dataContext) { }