I'm coding in a remoting mode.
Here is my code
----Client Side
BussInlistEntity inlist=new BussInlistEntity();
inlist.BussinessCode="ABC";
inlist.Fields[(int)BussInlistFieldIndex.ProductId].ExpressionToApply=new ScalarQueryExpression(BaseBinFields.ProductId,BaseBinFields.BinCode=='123456');
ServerManager.SaveEntity(inlist);
---Server Side
public void SaveEntity(CommonEntityBase entity)
{
using(DataAccessAdapter adapter=new DataAccessAdapter())
{
adapter.SaveEntity(entity);
}
}
when i monitor in server side,I found the filed "ProductId"'s CurrentValue is "null",and I set the filed "ProductId" is not null in db. So if I continue the code,an exception "null value is not allowed" throwed.
But when I use these code in "Local" mode,It will successfuly insert a new record to DB.
How can I use ExpressionToApply in a remoting mode? Especially when I want to set/update a DateTime field to "sysdate" because the timezone of Client Side and Server Side are different.