× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



We've rolled our own ORM. Of course, at the lowest level it's using
IBM's .NET provider for the connections, but all our developers ever see
is a "BusinessObject" that has fields that correspond (usually) to the
DB columns. Of course the objects also have appropriate business methods
on them. The most important thing is that you're not using SQL in your
UI layer. You want separation between your DB/Business Layer/UI layer

For example, we might have a Customer class defined as:

[DBTable("CUSTREFPF")]
public class Customer : BusinessObject
{
[DBField("CustNo")]
int _ID;

[DBField("CustName", MaxLength=30)]
string _Name;

....

public int ID
{
get {return _ID;}
}

public string Name
{
get {EnsureLoaded(); return _Name;}
set {SetField("_Name", value);}
}

...

public List<Order> GetOrders()
{
return Order.GetByCustomer(this);
}
}

We also support a GetByExample setup so we can do simple queries:

Customer example = new Customer();
example.State = "NY";
List<Customer> NYCustomers = Customer.GetByExample(example);




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.