How to automatically create BO?


Author
Message
lastcanary
lastcanary
StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 270
Dear Sir,



We are planning to developing an application that can generate a BO given a database table. Do you have your own functions to automatically generate .cs and .desginer.cs files for the BO? Could you please tell us the details of these functions so that we can use them in our application?



Best Regards
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (664 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Pardon my ignorance here, but have you installed or tested a trial of the framework yet? Just trying to get an idea of where you are on the StrataFrame curve Smile.

To answer your question, generating BOs off of an exsiting table structure is literally a 5 second process. The only reason it isn't completely automated is that we have an interim component (the BO Mapper) that allows you to assign Enums to fields, give custom proerties were approriate (i.e. to automatically handle an encrypted field in the databse), etc.  Once you have any of those types of customizations done (which, by nature, can not be completely automated), it is a matter of right clicking and selecting "build" to create the desiginer files and such.

If you don't require those customizations, then it is simply a matter of pointing the BO to the proper table structure (the "5 seconds" I mentioned), and clicking the build button. Very quick and simple!

lastcanary
lastcanary
StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 270
Thank you for your message.



Our project was to generate BO by coding. The user should select the table name and our program should generate the BO with proper .cs and .desginer.cs files automatically. We used the BO Mapper tool and it is working perfectly but we are trying to handle this process by coding it. Could you please tell us the classes and the methods you are using for BO Mapper tool?



Best Regards
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (664 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
There is nothing in-built in the framework to completely automate this for you. However, Paul Chase released an add-in in our User Contributed Samples section that looks like it will handle most, if not all, of what you are looking for. You can see that sample here.
lastcanary
lastcanary
StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 270
I will check the sample, thanks for the reply.
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