Problems with our own BO template. Can you help?


Author
Message
Peter Jones
Peter Jones
Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)
Group: Forum Members
Posts: 386, Visits: 2.1K
Hi,

This is not a StrataFrame issue as such but I would appreciate any comments you care to make. We have our own base BO that we have implemented as a template. It does a lot of standard stuff for our app and inherits from MicroFour.StrataFrame.Business.BusinessLayer of course.

In the environment we used to develop the template it works fine - a single project which contained all the BOs we created and various classes and forms.

We now have what we believe will be our 'proper' development environment - a single solution containing multiple projects, e.g. BO library for this, a BO library for that, a project for Forms etc. But now, when I create a BO using our template, I get the following errors and I just can't see where we have gone wrong. If I create a BO using the standard StrataFrame BO template everything is fine. I have checked the boXXX.designer.vb code for the BO produced by our own template and the standard StrataFrame template and its identical. I have checked the boXXX.vb code for for both approaches and, except for the expected custom code, both pieces of code are the same.

As I said, any comment would be appreciated.

Error 1 'Public Overrides Property RequiredFields() As MicroFour.StrataFrame.Business.RequiredFieldsCollection' cannot override 'Public Overridable Property RequiredFields() As MicroFour.StrataFrame.Business.RequiredFieldsCollection' because they differ by their return types. C:\TMSRedevelopment\TMS\BOTableMaint\boSPCNew.Designer.vb 46 31 BOTableMaint

Error 2 'Public Overrides Property ParentRelationship() As MicroFour.StrataFrame.Business.IBusinessParentRelationship' cannot override 'Public Overrides Property ParentRelationship() As MicroFour.StrataFrame.Business.IBusinessParentRelationship' because they differ by their return types. C:\TMSRedevelopment\TMS\BOTableMaint\boSPCNew.Designer.vb 60 31 BOTableMaint

Error 3 'Public Overrides ReadOnly Property FieldEnums() As
MicroFour.StrataFrame.Business.BusinessLayerFieldEnumDictionary' cannot override 'Public Overridable ReadOnly Property FieldEnums() As MicroFour.StrataFrame.Business.BusinessLayerFieldEnumDictionary' because they differ by their return types. C:\TMSRedevelopment\TMS\BOTableMaint\boSPCNew.Designer.vb 194 40 BOTableMaint

Error 4 function 'CreateNewFieldSecurityEventArgs' cannot be declared 'Overrides' because it does not override a function in a base class. C:\TMSRedevelopment\TMS\BOTableMaint\boSPCNew.Designer.vb 442 34 BOTableMaint

Error 5 sub 'OnCheckFieldSecurity' cannot be declared 'Overrides' because it does not override a sub in a base class. C:\TMSRedevelopment\TMS\BOTableMaint\boSPCNew.Designer.vb 462 29 BOTableMaint

Error 6 'Protected Overrides ReadOnly Property PropertyDescriptors() As MicroFour.StrataFrame.Business.PropertyDescriptorDictionary' cannot override 'Protected Overridable ReadOnly Property PropertyDescriptors() As MicroFour.StrataFrame.Business.PropertyDescriptorDictionary' because they differ by their return types. C:\TMSRedevelopment\TMS\BOTableMaint\boSPCNew.Designer.vb 572 43 BOTableMaint

Cheers, Peter

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