vb.net - Statement lambdas cannot be converted to expression trees in Workflow Foundation 4.0 -
i've been pulling hair out on awhile. have custom activity accepts inargument such:
[requiredargument] public inargument<func<idatareader, t>> projection { get; set; }
and later on use projection in select statement on data reader after sql query so:
results = reader.select<t>(context.getvalue(this.projection)).tolist();
now, difficult part passing func variable in vb expression. in case, t list of rawtie objects. every time try complicated expression assemble list reader, error: statement lambda functions not supported in context.
here example of expression attempted. keeping in mind vb not primary language:
function(r idatareader) new list(of rawtie) dim ties new list(of rawtie)() while r.read() 'do ties loop r.close() return ties end function
is there information on, @ least, whether vb problem or wwf problem? ask if need more information.
Comments
Post a Comment