Model for importing classes so HQL queries can use them more easily.
Inheritance: IVisitable
		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);
			}
		}
Ejemplo n.º 2
0
		/// <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));
		}
Ejemplo n.º 3
0
 /// <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)
 {
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Visits the import.
 /// </summary>
 /// <param name="model">The model.</param>
 public virtual void VisitImport(ImportModel model)
 {
 }