Login Skip Navigation LinksWilsonORMapper > Stored Procs Search
Demo Version Demo Version
Download and try for yourself a fully working demo version, including sample apps and documentation.  The only limitation is that the demo version only works inside the debugger.

PayPal Subscribe
Get It All for $50 USD:
WebPortal, ORMapper,
Source Code, All Updates
PayPal

Wilson ORMapper Examples Wilson ORMapper Examples

Select Stored Procedure

CREATE PROCEDURE RetrieveContacts (
@ContactName VARCHAR(50)
) AS
SELECT ContactId, ContactName, CompanyName
FROM Contacts
WHERE ContactName LIKE @ContactName + '%';

Using SelectProcedure

// Get All Contacts with Names that start with A
SelectProcedure selectProc = new SelectProcedure(
  typeof(Contact), "RetrieveContacts");
selectProc.AddParameter("@ContactName", "A");
ObjectSet contacts = Manager.GetObjectSet(selectProc);