コード例 #1
0
ファイル: HasLotsOf.cs プロジェクト: Kempaf/CabiNet
 /// <summary>
 /// Retrivies child things based on the column name and table name
 /// </summary>
 /// <param name="relatedParent">The parent to be used</param>
 /// <param name="relationalColumn">The collumn name</param>
 /// <param name="con">The connection</param>
 public HasLotsOf(IThing relatedParent, string relationalColumn, OdbcConnection con)
     : base(con)
 {
     RelationalColumn = relationalColumn;
     _parentThing     = relatedParent;
 }
コード例 #2
0
ファイル: HasLotsOf.cs プロジェクト: Kempaf/CabiNet
 /// <summary>
 ///  Retrivies child things based on the column name and table name, setting the relational colummn to
 ///  parent_Id
 /// </summary>
 /// <param name="relatedParent">The parent to be used</param>
 /// <param name="con">The connection</param>
 public HasLotsOf(IThing relatedParent, OdbcConnection con)
     : base(con)
 {
     RelationalColumn = relatedParent.GetType().Name + "_Id";
     _parentThing     = relatedParent;
 }