/// <summary> /// Add some class attributes. /// </summary> /// <param name="classDecl">The ClassDeclaration instance we're adding an attribute to.</param> /// <param name="table">The database table that the ClassDeclaration represents.</param> protected override void AddClassAttributes(ClassDeclaration classDecl, TableSchema table) { classDecl.AddAttribute("Castle.ActiveRecord.ActiveRecordAttribute").AddQuotedArgument(this.NameProvider.Escape(table.Name)); }
/// <summary> /// Adds an attribute to a ClassDeclaration. /// </summary> /// <param name="classDeclaration">The ClassDeclaration instance the property is added to.</param> /// <param name="table">The database table the ClassDeclaration represents.</param> protected override void AddClassAttributes(ClassDeclaration classDeclaration, TableSchema table) { classDeclaration.AddAttribute("Castle.ActiveRecord.ActiveRecordAttribute").AddQuotedArgument(table.Name); }