Пример #1
0
 protected void OutputAttributes(CodeFirstMetadata metaNode)
 {
     foreach (var attr in metaNode.AdditionalAttributes)
     {
         var constructor = GetAttributeConstructor(attr);
         this.WriteLine(string.Format("[{0}]", constructor));
     }
 }
Пример #2
0
        protected void OutputXmlComments(CodeFirstMetadata metaNode)
        {
            var block = metaNode.XmlCommentString;

            if (block != null)
            {
                var lines = block.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
                foreach (var line in lines)
                {
                    this.WriteLine("///" + line);
                }
            }
        }