Beispiel #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="options">Options for this table</param>
 /// <param name="tableMetadata">The configuration for this table</param>
 /// <param name="parentColumnName">The name of the column that points out an id in the parent table.</param>
 /// <param name="parentTable">The parent table </param>
 public ManyToOneSql(IDatabaseOptions options, ISqlTableMetadata tableMetadata, string parentColumnName,
                     CrudSql <TOneModel> parentTable)
     : base(options, tableMetadata)
 {
     ParentColumnName = parentColumnName;
     ParentTable      = parentTable;
     _convenience     = new ManyToOneConvenience <TManyModel, TManyModel, Guid>(this);
 }
Beispiel #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="connectionString"></param>
 /// <param name="tableMetadata"></param>
 /// <param name="parentColumnName"></param>
 /// <param name="masterTableHandler"></param>
 public SlaveToMasterSql(string connectionString, ISqlTableMetadata tableMetadata, string parentColumnName,
                         CrudSql <TSlaveModel> slaveTableHandler, CrudSql <TMasterModel> masterTableHandler)
     : base(connectionString, tableMetadata, parentColumnName, slaveTableHandler, masterTableHandler)
 {
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="options"></param>
 /// <param name="tableMetadata"></param>
 /// <param name="groupColumnName1"></param>
 /// <param name="referenceHandler1"></param>
 /// <param name="groupColumnName2"></param>
 /// <param name="referenceHandler2"></param>
 public ManyToManySql(IDatabaseOptions options, ISqlTableMetadata tableMetadata, string groupColumnName1,
                      CrudSql <TReferenceModel1> referenceHandler1, string groupColumnName2,
                      CrudSql <TReferenceModel2> referenceHandler2)
     : base(options, tableMetadata, groupColumnName1, referenceHandler1, groupColumnName2, referenceHandler2)
 {
 }
 public ManyToManySql(string connectionString, ISqlTableMetadata tableMetadata, string groupColumnName1,
                      CrudSql <TReferenceModel1> referenceHandler1, string groupColumnName2,
                      CrudSql <TReferenceModel2> referenceHandler2)
     : base(connectionString, tableMetadata, groupColumnName1, referenceHandler1, groupColumnName2, referenceHandler2)
 {
 }
 public DependentToMasterSql(IDatabaseOptions options, ISqlTableMetadata tableMetadata,
                             CrudSql <TDependentModel> dependentTableHandler, CrudSql <TMasterModel> masterTableHandler)
     : base(options, tableMetadata, dependentTableHandler, masterTableHandler)
 {
 }
 public DependentToMasterSql(string connectionString, ISqlTableMetadata tableMetadata,
                             CrudSql <TDependentModel> dependentTableHandler, CrudSql <TMasterModel> masterTableHandler)
     : base(connectionString, tableMetadata, dependentTableHandler, masterTableHandler)
 {
 }