Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetAllEntities() vs GetAllData()
Message
From
17/05/2007 18:00:33
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
GetAllEntities() vs GetAllData()
Miscellaneous
Thread ID:
01226555
Message ID:
01226555
Views:
83
Hi!

I am looking at the sample C# application
public EmployeeForm()
{
	this.oEmployee = (Employee)this.RegisterPrimaryBizObj(new OakLeaf.MM.NorthwindSample.Main.Business.Employee());

	InitializeComponent();

	this.grdEmployees.AutoGenerateColumns = false;

	// Retrieve all employees
	this.oEmployee.GetAllEntities();

	// Specify the Navigation control
	this.NavControl = this.grdEmployees;

	this.oEmployee.CallStateChange(mmBusinessState.Bind);
}
and some more code
	// Get a list of all Shippers
	this.Shipper.GetAllData();

	// Get a list of all Employees
	this.Employee.GetAllData();
In the above two code blocks I see GetAllEntities() being called
// Retrieve all employees
this.oEmployee.GetAllEntities();
and GetAllData() being called
// Get a list of all Shippers
this.Shipper.GetAllData();
My question is what is the difference between GetAllEntities() and GetAllData() and when/why should you use once over the other?

Thanks

Sarosh
Next
Reply
Map
View

Click here to load this message in the networking platform