private static void InsertCode(ICodeBuilder codeBuilder, LoggingRelatedItemInfo info, string sqlResource, SqlTag<EntityLoggingInfo> tag) { string codeSnippet = Sql.Format(sqlResource, GetTempColumnNameOld(info), GetTempColumnNameNew(info), info.Table, SqlUtility.Identifier(info.Column), SqlUtility.QuoteText(info.Relation)); codeBuilder.InsertCode(codeSnippet, tag, info.Logging); }
private static string GetTempColumnNameNew(LoggingRelatedItemInfo info) { return SqlUtility.Identifier("New_" + CsUtility.TextToIdentifier(info.Relation) + "_" + info.Column); }