How to add a property to BO that inherit from a base bo as a collection like RequiredFields.


Author
Message
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)
Group: Forum Members
Posts: 153, Visits: 462
Lets say I want to add a property called RequiredAuditFields that does exactly what the RequiredFields. IE... a collection of collumns. What is the code to do this?
Reply
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)
Group: Forum Members
Posts: 153, Visits: 462
Before I abandon this I was hoping that you may be able to shed some light on this?

 

The type or namespace name 'UITypeEditor' could not be found (are you missing a using directive or an assembly reference?)

I placed this in my BO Base, along with other code that seems to be working but when it comes to this line I get this error above.

Here are my USING statements in the BaseBO:

using

MicroFour.StrataFrame.Business;

using

System;

using

System.Collections;

using

System.Collections.Generic;

using

System.ComponentModel;

using

System.Data;

using

System.Data.SqlClient;

using

System.Runtime.Serialization;

using

System.Text;

using

MicroFour.StrataFrame.Security;

using

System.Diagnostics;

using

Microsoft.VisualBasic;

using

System.ComponentModel.Design;

using

System.Collections.Specialized;

using

System.Reflection;

using

System.Runtime.InteropServices.ComTypes;

using

MicroFour.StrataFrame.UI.Windows.Forms;

using

MicroFour.StrataFrame.Extensibility;

using

System.Drawing.Design;

[Category(BUSINESSRULES_CATEGORY_NAME), Description("The AuditFieldsCollection that defines the fields within the business object that are required. If a required field is not populated, then a broken rule will be automatically added to the business object."), DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Editor(Constants.TE_RequiredFieldsEditor, typeof(UITypeEditor)]



public virtual RequiredFieldsCollection AuditFields

{

Get



{

return _AuditFields;



}



set { _AuditFields = value; }



}


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search