﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Overide enum for BO</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 17:00:22 GMT</lastBuildDate><ttl>20</ttl><item><title>Overide enum for BO</title><link>http://forum.strataframe.net/FindPost12902.aspx</link><description>Hi &lt;P&gt;I have any old Database that has used current reserved codes ie 'private' and 'ref' in c csharp.&lt;/P&gt;&lt;P&gt;Is there any way to overide the enum generated for the fields in the BO&lt;/P&gt;&lt;P&gt;eg see items in red, i can use the custom code to overide the field and replaced private with privatex and ref with refx&lt;/P&gt;&lt;P&gt;and that works fine but can not find a way to overide the enum for the fieldnames.&lt;/P&gt;&lt;P&gt;/// &amp;lt;summary&amp;gt;&lt;BR&gt;/// Contains all of the field names that belong to the business object.&lt;BR&gt;/// &amp;lt;/summary&amp;gt;&lt;BR&gt;/// &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;BR&gt;public enum actionsBOFieldNames&lt;BR&gt;{&lt;BR&gt;code,&lt;BR&gt;creaop,&lt;BR&gt;creadate,&lt;BR&gt;creatime,&lt;BR&gt;modiop,&lt;BR&gt;modidate,&lt;BR&gt;moditime,&lt;BR&gt;delop,&lt;BR&gt;deldate,&lt;BR&gt;deltime,&lt;BR&gt;deleted,&lt;BR&gt;company,&lt;BR&gt;contact,&lt;BR&gt;acttype,&lt;BR&gt;summary,&lt;BR&gt;filename,&lt;BR&gt;sent,&lt;BR&gt;startdate,&lt;BR&gt;starttime,&lt;BR&gt;enddate,&lt;BR&gt;endtime,&lt;BR&gt;length,&lt;BR&gt;extra1,&lt;BR&gt;extra2,&lt;BR&gt;extra3,&lt;BR&gt;extra4,&lt;BR&gt;extra5,&lt;BR&gt;extra6,&lt;BR&gt;extra7,&lt;BR&gt;extra8,&lt;BR&gt;extra9,&lt;BR&gt;extra10,&lt;BR&gt;template,&lt;BR&gt;status,&lt;BR&gt;&lt;FONT color=#dd1111&gt;private,&lt;/FONT&gt;&lt;BR&gt;topic,&lt;BR&gt;plandur,&lt;BR&gt;actudur,&lt;BR&gt;show,&lt;BR&gt;revdate,&lt;BR&gt;&lt;FONT color=#dd1111&gt;ref,&lt;/FONT&gt;&lt;BR&gt;acamount6,&lt;BR&gt;acanal1,&lt;BR&gt;acanal2,&lt;BR&gt;sitecode,&lt;BR&gt;cop_site,&lt;BR&gt;mop_site,&lt;BR&gt;dop_site,&lt;BR&gt;co_site,&lt;BR&gt;cn_site,&lt;BR&gt;att_site,&lt;BR&gt;tmpl_site,&lt;BR&gt;stat_site,&lt;BR&gt;ref_site,&lt;BR&gt;an1_site,&lt;BR&gt;an2_site,&lt;BR&gt;company2,&lt;BR&gt;contact2,&lt;BR&gt;co_site2,&lt;BR&gt;cont_site2,&lt;BR&gt;pathid,&lt;BR&gt;importcode,&lt;BR&gt;importno,&lt;BR&gt;actuser,&lt;BR&gt;staticaction,&lt;BR&gt;viewcode,&lt;BR&gt;invoicenum,&lt;BR&gt;invoicedate,&lt;BR&gt;CUSTOM_FIELD&lt;BR&gt;}&lt;BR&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;P&gt;Shivji</description><pubDate>Sat, 08 Dec 2007 03:15:47 GMT</pubDate><dc:creator>Shivji Patel</dc:creator></item><item><title>RE: Overide enum for BO</title><link>http://forum.strataframe.net/FindPost12944.aspx</link><description>Thanks for the advice Ben, i will try that and let you know how i get on &lt;/P&gt;&lt;P&gt;Shivji</description><pubDate>Sat, 08 Dec 2007 03:15:47 GMT</pubDate><dc:creator>Shivji Patel</dc:creator></item><item><title>RE: Overide enum for BO</title><link>http://forum.strataframe.net/FindPost12916.aspx</link><description>It wouldn't do it properly without a change to the BOMapper.&amp;nbsp; But, what you could do is change your custom code so that the name of the properties are @private and @ref rather than privatex and refx... that will allow you to keep the explicit names.&amp;nbsp; The @ in C# tells the compiler to keep that name no matter what.&amp;nbsp; After that, you won't have to worry about using the @ again... because you can type "this.private" or "bo.private"&amp;nbsp; If you ever have to reference the field without a reference qualifier, then you'll just use the @ again.&lt;P&gt;So, you can do the same within the enum... just add a @ in front of the two values that are causing problems; however, since there is no custom code for the enum, you'll have to remember to re-add the @ each time you re-generate that partial class (which would be hard to forget since it won't compile ;)).</description><pubDate>Thu, 06 Dec 2007 09:29:17 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>