public void Terminate(IOrmSession session, bool isSuccessfully) { if (session == null) throw new ArgumentNullException("session"); session.Dispose(); Dispose(); }
protected BaseRepository(string tableName, IOrmSession ormSession, ICurrentUser <TID> currentUser) { this.TableName = tableName; if (ormSession is MySqlSession) { this.SessionType = SessionType.MySql; } else if (ormSession is SQLiteSession) { this.SessionType = SessionType.SQLite; } else { this.SessionType = SessionType.Unknown; } this.UnitOfWork = ormSession.UnitOfWork; this.CurrentUser = currentUser; }
public AppRespository(string tableName, IOrmSession ormSession, ICurrentUser <Guid> currentUser) : base(tableName, ormSession, currentUser) { }
public FewBoxRepository(IOrmSession ormSession, ICurrentUser <Guid> currentUser) : base("fb", ormSession, currentUser) { }
public TransactionAsyncFilter(IOrmSession ormSession) { this.OrmSession = ormSession; }
protected void OnSetUp() { source = Guid.NewGuid().ToString(); session = Substitute.For<IOrmSession>(); InternalEnvironment.RegisterDataSource(new DataSource(source, il => session)); }
public AppRepository(IOrmSession ormSession, ICurrentUser <Guid> currentUser) : base("app", ormSession, currentUser) { }
public TraceLogRepository(IOrmSession ormSession, ICurrentUser <Guid> currentUser) : base("tracelog", ormSession, currentUser) { }
protected Repository(string tableName, IOrmSession ormSession, ICurrentUser <Guid> currentUser) : base(tableName, ormSession, currentUser) { }
public ExceptionLogRepository(IOrmSession ormSession, ICurrentUser <Guid> currentUser) : base("exceptionlog", ormSession, currentUser) { }