public IDomainTableRepository <TTableType> CreateRepository <TTableType>(ISqliteDataConnection dataConnection, string name = "") where TTableType : class, IDomainTable
        {
            if (string.IsNullOrEmpty(name))
            {
                TTableType domainTable = System.Activator.CreateInstance <TTableType>();
                if (domainTable != null)
                {
                    name = domainTable.Name;
                }
            }

            switch (name)
            {
            default:
                return(new GenericTableRepository <TTableType>(name, dataConnection));
            }
        }
Exemplo n.º 2
0
 public virtual ITableRepository <TTableType> CreateRepository <TTableType>(string name, ISqliteDataConnection dataConnection) where TTableType : class, IDomainTable
 {
     switch (name)
     {
     default:
         return(new GenericTableRepository <TTableType>(name, dataConnection));
     }
 }
 public DataTableRepositoryBase(ISqliteDataConnection dataConnection)
     : base(dataConnection)
 {
 }
Exemplo n.º 4
0
 public RepositoryBase(ISqliteDataConnection dataConnection)
 {
     Connection = dataConnection;
 }
Exemplo n.º 5
0
 public GenericTableRepository(string name, ISqliteDataConnection dataConnection)
     : base(dataConnection)
 {
     _name = name;
 }
Exemplo n.º 6
0
 public InfoTableRepository(ISqliteDataConnection dataConnection)
     : base(CoreSchemaTableName.INFOTABLE_V1, dataConnection)
 {
 }
Exemplo n.º 7
0
 public DataRepository(ISqliteDataConnection dataConnection)
 {
     DataConnection = dataConnection;
 }