示例#1
0
 public void BeginScope(string name)
 {
     writer.WriteLine("namespace {0}", name);
     writer.BeginScope();
     this.name    = name;
     this.wasUsed = true;
 }
示例#2
0
        protected virtual void ProcessEntities()
        {
            cw.BeginRegion("Entities");
            ICSharpNamespaceWriter nswriter = cw.CreateNamespaceWriter();

            foreach (IEntity entity in Model.Entities)
            {
                nswriter.BeginOrContinueScope(entity.Schema);
                ProcessEntity(entity);
                cw.WriteLine();
            }
            nswriter.EndScope();
            cw.EndRegion();
            cw.WriteLine();
        }