Пример #1
0
        private string MakeSensibleConstraintName(string prefix, string tableName)
        {
            var constraintName = QuerySyntaxHelper.MakeHeaderNameSensible(tableName);

            if (string.IsNullOrWhiteSpace(constraintName))
            {
                Random r = new Random();
                constraintName = "Constraint" + r.Next(10000);
            }

            return(prefix + constraintName);
        }
 public override string GetRuntimeName()
 {
     return(QuerySyntaxHelper.GetRuntimeName(_functionName));
 }