示例#1
0
        private IEnumerable <string> GetVariableTableColumnDefs()
        {
            SqlTypeNameVistor typeVisitor = new SqlTypeNameVistor();

            yield return($"{lookupContext.IdMember.Name} {lookupContext.IdMember.MemberType.Accept(typeVisitor)} NOT NULL");

            yield return($"{lookupContext.NameMember.Name} {lookupContext.NameMember.MemberType.Accept(typeVisitor)} NOT NULL");

            yield return($"{lookupContext.DescriptionMember.Name} {lookupContext.DescriptionMember.MemberType.Accept(typeVisitor)} NOT NULL");

            foreach (var column in lookupContext.OtherMembers)
            {
                yield return($"{column.Name} {column.MemberType.Accept(typeVisitor)} NOT NULL");
            }
        }
        private IEnumerable<string> GetVariableTableColumnDefs()
        {
            SqlTypeNameVistor typeVisitor = new SqlTypeNameVistor();

            yield return $"{lookupContext.IdMember.Name} {lookupContext.IdMember.MemberType.Accept(typeVisitor)} NOT NULL";
            yield return $"{lookupContext.NameMember.Name} {lookupContext.NameMember.MemberType.Accept(typeVisitor)} NOT NULL";
            yield return $"{lookupContext.DescriptionMember.Name} {lookupContext.DescriptionMember.MemberType.Accept(typeVisitor)} NOT NULL";

            foreach (var column in lookupContext.OtherMembers)
            {
                yield return $"{column.Name} {column.MemberType.Accept(typeVisitor)} NOT NULL";
            }
        }