Click to See Complete Forum and Search --> : Help with writing an Insert function (with Predicate?)


sweettomandjerry
March 6th, 2007, 02:38 PM
Hello All,

My requirement is to write an Insert function that has one argument (One instance<test>). This function should return a boolean value (1 for ture and -1 for false). The condition is:
if id is already populated then insert into database but if its null then use query to get a sequence number: Select id.nextval into: oracle function

For returning an instance of <test>, you can use elements as lastname, firstname, id, adddate and then use these as the parameters for Insert function. I am new to C# so been struggling. However, in my research I found out that we can use Predicate function to search again a criteria. I would really appreciate if someone could help me implement this.

Thanks!

sweettomandjerry
March 7th, 2007, 10:16 AM
Any suggestions?

Thanks!