My favorites | Sign in
Project Logo
                
People details
Project owners:
  adamtaunowilliams

EOMono is an assembly that provides database access and command logic to an ODBC connected database similiar to the EOModel / EOEntity / EOGenericRecord from the NextStep / OpenStep database interface.

EOMono was created for a couple of reasons:

NOTE: EOMono isn't at all intended to be in any way "compatible" with EO or NextStep or to duplicate the syntax exactly. It just borrows the ideas.

Objects

Commands

You can also draft your own commands, and commands that go beyond simple database functionality; for example code like:

  try
  {
    connection.Run(":SyncGearWorksJobUpdates",
      "proxy", "tyr:3128",
      "username", "**********",
      "password", "*********",
      "start", DateTime.Now.AddHours(-1.0).ToString("yyyy-MM-dd HH:mm:00.000"),
      "end", DateTime.Now.ToString("yyyy-MM-dd HH:mm:99.999"));
  } catch (Exception _exception) 
    {

in one of our internal applications executes once an hour to syncronize some database tables with an external SOAP web service; the above command requests the data and performs Fetch / Set / New commands to update the database.

Commands are just objects that implement the very simple IEOCommand interface, although most of the time it is sensible to also inherit from the abstract EOCommand object. Command objects are then mapped to names via an EOCommandAttribute attribute on the class:

  [EOCommandAttribute("SyncGearWorksJobUpdates", 1, "Get job updates from Gearworks")]
  public class GetUpdatedJobs : EOCommand, IEOCommand
  {








Hosted by Google Code