Hello I have added a new constructor in the ClientGroupEntity and trying to pass a ClientGroupName as string. I am doing the same thing what i saw in the generated code as mentioned below
public ClientGroupEntity(System.Decimal clientGroupId):base("ClientGroupEntity")
{
InitClassEmpty(null, null);
this.ClientGroupId = clientGroupId;
}
This what I have implemented as a new constructor to fetch the entity by a customer name. But Unable to get the entity, It is returning null. I have added my code in the custom entity code region. Please help..
public ClientGroupEntity(System.String clientGroupName)
: base("ClientGroupEntity")
{
InitClassEmpty(null, null);
this.ClientGroupName = clientGroupName;
}
In the client code I am writing the below code.
ClientGroupEntity clientGroup = new ClientGroupEntity("ABC");
DataAccessAdapter adapter = new DataAccessAdapter();
adapter.FetchEntity(clientGroup);
string s = clientGroup.ClientGroupCode;
Now in the client code i am expecting s should be filled bby ClientGroupCode. But it is returning as null....
Please help, what I am doing wrong.