Hi,
In my Project I have a dataset named "SDMDAL.xsd"and I am adding "TableAdapter" named "SDM_Master_Budget_TestTableAdapter" inside "SDMDAL.xsd" dataset, wizard to bind data.
And I have created a class file (say "SDM.Budget.cs") inside which I am calling thisDataset TableAdapter, C# code is below:
using SDMDALTableAdapters; // refrence of dataset table adapter
public class SDM_BudgetTest
{
public SDM_BudgetTest()
{
}
private SDM_Master_Budget_TestTableAdapter _Budget_TestTableAdapter = null;
protected SDM_Master_Budget_TestTableAdapter Adapter
{
get
{
if (_Budget_TestTableAdapter == null)
_Budget_TestTableAdapter = new SDM_Master_Budget_TestTableAdapter();
return _Budget_TestTableAdapter;
}
}
#region GET
public SDMDAL.SDM_Master_Budget_TestTableAdapter GetBudgetTest()
{
return Adapter.GetBudgetTest();
}
#endregion
public void UpdateBudget(DataRow BudgetRow)
{
Adapter.Update(BudgetRow);
}
public void DeleteBudget(int ID)
{
Adapter.Delete(ID);
}
public void InsertBudget(string BfoSectionID, decimal BValueEX, decimal BValueEXBilled, decimal BValuePD, int BYear)
{
Adapter.Insert(BfoSectionID, BValueEX, BValueEXBilled, BValuePD, BYear);
}
When I deploy my code to server, I get this error:
"SDM_Master_Budget_TestTableAdapter' does not exist in the type 'SDMDAL'"