Beispiel #1
0
 public override string GetQuotedIdentifierName(RDBMSEntityType type, string name)
 {
     if (type!=RDBMSEntityType.Domain)
             return "[{0}]".Args(name);
         else
             return name;
 }
Beispiel #2
0
 public override string GetQuotedIdentifierName(RDBMSEntityType type, string name)
 {
     if (type != RDBMSEntityType.Domain)
     {
         return("`{0}`".Args(name));
     }
     else
     {
         return(name);
     }
 }
Beispiel #3
0
        public RDBMSEntity(RDBMSEntity parentEntity, IConfigNode sourceNode, RDBMSEntityType entityType, string originalName, string originalShortName = null, string transformedName = null, string transformedShortName = null)
        {
            if (parentEntity!=null)
                parentEntity.Children.Add(this);

            ParentEntity = parentEntity;
            SourceNode = sourceNode;
            EntityType = entityType;
            OriginalName = originalName;
            OriginalShortName = originalShortName;
            TransformedName = transformedName;
            TransformedShortName = transformedShortName;
        }
Beispiel #4
0
        public RDBMSEntity(RDBMSEntity parentEntity, IConfigNode sourceNode, RDBMSEntityType entityType, string originalName, string originalShortName = null, string transformedName = null, string transformedShortName = null)
        {
            if (parentEntity != null)
            {
                parentEntity.Children.Add(this);
            }

            ParentEntity         = parentEntity;
            SourceNode           = sourceNode;
            EntityType           = entityType;
            OriginalName         = originalName;
            OriginalShortName    = originalShortName;
            TransformedName      = transformedName;
            TransformedShortName = transformedShortName;
        }
Beispiel #5
0
 public override string GetStatementDelimiterScript(RDBMSEntityType type, bool start)
 {
     return start ? string.Empty : "\nGO\n";
 }
Beispiel #6
0
 /// <summary>
 /// Override to return statement delimiter script for particular target , i.e. "Go" at the statementend for MsSQL Server T-SQL
 /// </summary>
 public virtual string GetStatementDelimiterScript(RDBMSEntityType type, bool start)
 {
     return start ? string.Empty : ";";
 }
Beispiel #7
0
 /// <summary>
 /// Gets quoted name per particular technology
 /// </summary>
 public virtual string GetQuotedIdentifierName(RDBMSEntityType type, string name)
 {
     return "\"{0}\"".Args(name);
 }
Beispiel #8
0
 public override string GetStatementDelimiterScript(RDBMSEntityType type, bool start)
 {
     return(start ? "delimiter ;." : ";.");
 }
Beispiel #9
0
 public override string GetStatementDelimiterScript(RDBMSEntityType type, bool start)
 {
     return(start ? string.Empty : "\nGO\n");
 }
Beispiel #10
0
 /// <summary>
 /// Override to return statement delimiter script for particular target , i.e. "Go" at the statementend for MsSQL Server T-SQL
 /// </summary>
 public virtual string GetStatementDelimiterScript(RDBMSEntityType type, bool start)
 {
     return(start ? string.Empty : ";");
 }
Beispiel #11
0
 /// <summary>
 /// Gets quoted name per particular technology
 /// </summary>
 public virtual string GetQuotedIdentifierName(RDBMSEntityType type, string name)
 {
     return("\"{0}\"".Args(name));
 }
Beispiel #12
0
 public override string GetStatementDelimiterScript(RDBMSEntityType type, bool start)
 {
     return start ? "delimiter ;." : ";.";
 }