Thanks, that works perfectly but I need advice on a small issue
my expression for the field looks like this:
IEntityField2 fullNameField = new EntityField2("FullName",
new Expression(Person.LastName,ExOp.Add,Person.FirstName));
that works but it returns SchmoeJoe
I need the expression to return Schmoe, Joe.
How do I achieve this.
sorry, I am new to the expressions code
also,
we are regenerating code a lot. how do I stop the new code from being deleted on a regen
public virtual IEntityFields2 CreateFields()
{
//__LLBLGENPRO_USER_CODE_REGION_START
IEntityFields2 fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(HOO.LARS.BLL.EntityType.person);
fieldsToReturn.Expand(1);
IEntityField2 fullNameField = new EntityField2("FullName",
new Expression(personfields.LastName,ExOp.Add,personFields.FirstName));
fieldsToReturn.DefineField(fullNameField, fieldsToReturn.Count - 1);
return fieldsToReturn;
// __LLBLGENPRO_USER_CODE_REGION_END
}
normally it looks like:
return EntityFieldsFactory.CreateEntityFieldsObject(HOO.LARS.BLL.EntityType.VO_CrewMemberEntity);
I now my code shouldn't disappear but I dont want the code above to be placed in front of mine again