Hi Tony,
You can use the IExpressionable object to do this. So, you would actually need to be using the [DwCompute()] attribute on the .NET DataStore Model. Then, the Expression property of the DwMeta.Computes object has a GET and a SET to it. So you can make the changes this way.
Following is an example of obtaining the expression from a .NET DataStore computed field:
string exp = ds_Customers.DwMeta.Computes.FirstOrDefault().Expression.Expression;
And, next is an example of setting the expression to the .NET DataStore computed field:
ds_Customers.DwMeta.Compute.FirstOrDefault().Expression.Expression = "city + ', ' + state";
Please do keep in mind, however, that since this is a beta version, there are some known issues with the DwCompute Attribute of the .NET DataStore Model (more details here).
I hope this helps.
Regards,
It works similar to the original way in PB.
E.g. :
DataStore ds = new DataStore("d_dept", _context);
ds.Modify("Compute_1.Expression = 'getrow()'");