esUtility
The esUtility class will allow you to access this lower level API without adding
custom methods to your EntitySpaces classes. This can be useful when what you need
to do doesn't really belong to a particular entity
C#
VB
One thing to note is that you never use decorators on your parameters such as ?
or @ or : (depending on your database). The EntitySpaces Data Providers do this
for you. For instance, notice in the sample code below that we do not set the parameter
name to "@Salary" rather we just use "Salary". This allows you to access stored
procedures and still have a database independent application as the EntitySpaces
Data Provider will "gussy up" the parameters with the proper decorator. In fact,
you really don't have to use the syntax below unless you need to provide extra information
such as parameter direction or perhaps the precision or scale of a decimal for some
reason. Otherwise you can just use the {0}, {1} syntax as shown above in the GetReader()
method. Even when using the {0} syntax EntitySpaces will create a true parameter
for you to ensure that no SQL injection attacks are successful.
C#
VB