コード例 #1
0
 /// <summary>
 /// Generates a unique name for an identifier, to use as a named parameter.
 /// </summary>
 /// <param name="columnIdentifier">The identifier definition.</param>
 /// <returns>A string containing the generated name.</returns>
 public string GetParameterName(SqlIdentifier columnIdentifier, int parameterNameSuffix)
 {
     if (parameterNameSuffix == 0)
     {
         return("param_" + columnIdentifier.Definition.Trim().Replace('.', '_').Replace(' ', '_'));
     }
     else
     {
         return("param_" + columnIdentifier.Definition.Trim().Replace('.', '_').Replace(' ', '_') + "_" + parameterNameSuffix.ToString());
     }
 }
コード例 #2
0
ファイル: Delete.cs プロジェクト: LeoIlla777/Gestion777
 public Delete(SqlIdentifier singleTable, Where whereClause)
     : this(new SqlIdentifierCollection() { singleTable }, whereClause)
 {
 }
コード例 #3
0
ファイル: Delete.cs プロジェクト: LeoIlla777/Gestion777
 public Delete(SqlIdentifier singleTable)
     : this(new SqlIdentifierCollection() { singleTable })
 {
 }
コード例 #4
0
 public Query(SqlIdentifier singleTable)
     : this(new SqlIdentifierCollection() { singleTable })
 {
 }
コード例 #5
0
ファイル: Statement.cs プロジェクト: LeoIlla777/Gestion777
 public Statement(SqlIdentifier singleTable)
     : this(new SqlIdentifierCollection() { singleTable })
 {
 }
コード例 #6
0
 public string SqlText(SqlIdentifier identifier)
 {
     return(this.QuoteIdentifier(identifier.Prefix, identifier.Name, identifier.Alias));
 }
コード例 #7
0
ファイル: Insert.cs プロジェクト: LeoIlla777/Gestion777
 public Insert(SqlIdentifier singleTable)
     : this(new SqlIdentifierCollection() { singleTable })
 {
 }
コード例 #8
0
ファイル: Select.cs プロジェクト: LeoIlla777/Gestion777
 public Select(SqlIdentifier singleTable, bool forUpdate)
     : this(new SqlIdentifierCollection() { singleTable })
 {
     this.ForUpdate = forUpdate;
 }
コード例 #9
0
 public Join(SqlIdentifier table, string on)
 {
     this.Table = table;
     this.On    = on;
 }