Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetAllEntities() vs GetAllData()
Message
De
17/05/2007 18:00:33
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
GetAllEntities() vs GetAllData()
Divers
Thread ID:
01226555
Message ID:
01226555
Vues:
87
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform