Walaa wrote:
There are many ways, but I prefer this:
Add a new file.....Use "partial" to re declare the class and then add these methods.
So when you regenerate the code, your file won't be deleted or overwritten.
Thanks for your help...I dont know whether I am flogging a dead horse but I am not sure how to get these properties into the ReleaseRequestEnity so the linq query populate with data.
Am I on the right track with below:
public partial class ReleaseRequestEntity : CommonEntityBase, ISerializable
{
public virtual System.String AuthBy
{
get { return (System.String)GetValue((int)ReleaseRequestFieldIndex.AuthBy, true); }
set { SetValue((int)ReleaseRequestFieldIndex.AuthBy, value); }
}
public virtual System.String CUsr
{
get { return (System.String)GetValue((int)ReleaseRequestFieldIndex.CUsr, true); }
set { SetValue((int)ReleaseRequestFieldIndex.CUsr, value); }
}
public virtual System.String MUser
{
get { return (System.String)GetValue((int)ReleaseRequestFieldIndex.MUser, true); }
set { SetValue((int)ReleaseRequestFieldIndex.MUser, value); }
}
private static void SetupCustomPropertyHashtables()
{
Dictionary<string, string> fieldHashtable = null;
fieldHashtable = new Dictionary<string, string>();
_fieldsCustomProperties.Add("AuthBy", fieldHashtable);
fieldHashtable = new Dictionary<string, string>();
_fieldsCustomProperties.Add("CUsr", fieldHashtable);
fieldHashtable = new Dictionary<string, string>();
_fieldsCustomProperties.Add("MUser", fieldHashtable);
fieldHashtable = new Dictionary<string, string>();
}