Questions on Demo

Posts   
 
    
rlangham
User
Posts: 2
Joined: 19-Jan-2007
# Posted on: 19-Jan-2007 22:41:34   

I am using the demo version and curious about a few things...

1) Does it have an option to create the insert/update/insert SQL statements for a table, and then we can import these into the database and have the generated .NET code call the stored procedures. We have security requirements where all statements of this type must be in stored procedures, not SQL statements on the client side?

2) In the example generated code for my table, I saw Update and Delete routines, but did not see an Add routine. There appears to be an AddEntity low-level method, but did not generated code using this routine

3) Appears to be DataReader support in the low-level code, but no generated code that returns this, only DataSet. Any option for this?

Thanks, Ron

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 20-Jan-2007 17:44:59   

rlangham wrote:

I am using the demo version and curious about a few things...

1) Does it have an option to create the insert/update/insert SQL statements for a table, and then we can import these into the database and have the generated .NET code call the stored procedures. We have security requirements where all statements of this type must be in stored procedures, not SQL statements on the client side?

We don't support procs for CUD operations during entity operations, as in: save an object graph and while saving call procs instead of generate code.

You could of course modify the sourcecode for the DQE (SQL engine) for the DB you're using (every customer can access/modify the runtime lib sourcecode) and emit calls to procs, obtained from a list) instead of generating SQL though this isn't recommended.

2) In the example generated code for my table, I saw Update and Delete routines, but did not see an Add routine. There appears to be an AddEntity low-level method, but did not generated code using this routine

Selfservicing? In which class were these routines located? Please provide more information.

3) Appears to be DataReader support in the low-level code, but no generated code that returns this, only DataSet. Any option for this?

You can fetch any query as a datareader, and also project the datareader onto any other class. Please check in the documentation: using the generated code -> selfservicing/adapter -> Fetching DataReaders and projections.

It contains an example with a stored proc as well.

Frans Bouma | Lead developer LLBLGen Pro
rlangham
User
Posts: 2
Joined: 19-Jan-2007
# Posted on: 20-Jan-2007 20:22:10   

Selfservicing? In which class were these routines located? Please provide more information.

It was in

 SD.LLBLGen.Pro.ORMSupportClasses.NET20.xml

file that I believe describes methods available in the DLL. The following entry was in the file..

M:SD.LLBLGen.Pro.ORMSupportClasses.Context.AddEntity(SD.LLBLGen.Pro.ORMSupportClasses.IEntityCore)

But, my bad!! After second look, I was previously just looking at the generated code and not paying attention to the inherited methods provided through the EntityCollectionBase generic. Here is see the Add methods, plus numerous others.

Thanks, nice product, may consider, but unfortunately at this time I think I have a security requirement that all access to the database must go through stored procedures, so looking for a product that will also create all the stored procedures (specifically for Oracle 10g).

Chester
Support Team
Posts: 223
Joined: 15-Jul-2005
# Posted on: 21-Jan-2007 00:14:08   

rlangham wrote:

Thanks, nice product, may consider, but unfortunately at this time I think I have a security requirement that all access to the database must go through stored procedures, so looking for a product that will also create all the stored procedures (specifically for Oracle 10g).

It's too bad this misperception (that stored procs are more secure) is so pervasive out there. Here's some other threads that discuss this topic:

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=3651&HighLight=1

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=5905&HighLight=1

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=5299&HighLight=1