private static void ProcessImports(Type type, ActiveRecordModel model) { object[] attrs = type.GetCustomAttributes(typeof(ImportAttribute), false); foreach (ImportAttribute att in attrs) { ImportModel im = new ImportModel(att); model.Imports.Add(im); } }
/// <summary> /// Visits the import. /// </summary> /// <param name="model">The model.</param> public override void VisitImport(ImportModel model) { AppendF("<import{0}{1} />", MakeAtt("class", MakeTypeName(model.ImportAtt.Type)), MakeAtt("rename", model.ImportAtt.Rename)); }
/// <summary> /// Visits the import. /// </summary> /// <param name="model">The model.</param> public override void VisitImport(ImportModel model) { AppendFullTag("import", MakeAtt("class", MakeTypeName(model.ImportAtt.Type)), MakeAtt("rename", model.ImportAtt.Rename)); }
/// <summary> /// Visits the import. /// </summary> /// <param name="model">The model.</param> public virtual void VisitImport(ImportModel model) { }