private static string GetBaseKey(AopInfo para, string tableName) { if (string.IsNullOrEmpty(tableName)) { if (para.MAction != null) { foreach (MCellStruct ms in para.MAction.Data.Columns) { if (!string.IsNullOrEmpty(ms.TableName)) { tableName = ms.TableName; break; } } if (string.IsNullOrEmpty(tableName)) { if (para.TableName.Contains(" ")) { tableName = "View_" + TableSchema.GetTableHash(para.TableName); } else { tableName = para.TableName; } //if (para.MAction.Data.Columns.isViewOwner) //{ // tableName = "ActionV" + Math.Abs(para.TableName.GetHashCode()); //} } } else { if (!para.IsProc) { tableName = SqlSyntax.Analyze(para.ProcName).TableName; } else { tableName = "Proc_" + para.ProcName; } } } return(GetBaseKey(tableName, para.ConnectionString)); }