public class Dw_Clients
{
[Key]
[DefaultValue(typeof(String), "'0'")]
public String No_Ste { get; set; }
[Key]
public String Cd_Cl { get; set; }
[ConcurrencyCheck]
public String Vil { get; set; }
[ConcurrencyCheck]
public String Des_Cl { get; set; }
}
{
var dataStore = new DataStore("dw_clients", _dataContext);
dataStore.Retrieve();
return dataStore;
}
public IDataStore RetrieveOne(string id)
{
var dataStore = new DataStore("dw_clients", _dataContext);
dataStore.Retrieve(id);
return dataStore;
}
Parameter name: arguments
PowerBuilder.Data.AdoDbDataSource<TModel>.Retrieve(object[] arguments)
I guess it's because the Retrieve(object[] arguments) doesn't like my string parameter as an ID, how can i make it works?
Best regards,
Olivier.
The way i was seeing it is that i would have create one and only one big data model object dw_client that will have all the properties in my table, then depending on the need of each datawindow i would have called a different function in my service GetAllClient() or GetClientById(string id)...