Quick question about adding a new item when using binding sources. I have tried to use the Create method but it says that the properties I need to set are read only. The table is one-many table where the key's are values from other tables.
Table - PK
DataStore - DSId
Users - UserId
UserRights - DSId , UserId
In the UserRights BO I have the following:
public static UserRights Create(PersistenceManager pManager, int dsId, int userId)
{
UserRights aUserRights = pManager.CreateEntity<UserRights>();
// if this object type requires a unique id and you have implemented
// the IIdGenerator interface implement the following line
//pManager.GenerateId(aUserRights, // add id column here //);
aUserRights.AddToManager();
// Add custom code here
aUserRights.Dsid = dsId; -> says it is read only
aUserRights.UserId = userId; -> says it is read only
aUserRights.AddToManager();
return aUserRights;
}
How do I create a new row?