public void BeginScope(string name) { writer.WriteLine("namespace {0}", name); writer.BeginScope(); this.name = name; this.wasUsed = true; }
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(); }