|
using System;
using System.Collections.Generic;
using System.Text;
namespace XPeriment.DataAccessTasks
{
public class InsertTask:FieldSetTask
{
private decimal scopeidentity = 0;
public decimal ScopeIdentity
{
get
{
return scopeidentity;
}
set
{
scopeidentity = value;
}
}
public InsertTask(string baseTable)
: base(baseTable)
{
}
public void Set(string fieldName, object value)
{
Fields.Add(fieldName, new FieldValueData(fieldName, value));
}
public decimal Execute()
{
Performer.Run(this);
return scopeidentity;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.