LLBGEN 2.5 why no save

Posts   
 
    
buckd30
User
Posts: 15
Joined: 20-May-2009
# Posted on: 23-Jun-2009 11:48:10   

I am using llbgen 2.5 and i try and use the examples in the help file but I created my own dataservice as I could never seem to figure out why i dont have the built in save functions availalbe to me for example

'VB.NET Dim newProduct As New ProductEntity() Page 579 newProduct.CategoryID=1 newProduct.Discontinued=False; newProduct.ProductName="TooCool" newProduct.QuantityPerUnit="1" newProduct.ReorderLevel=10 newProduct.SupplierID=1 newProduct.UnitPrice=2.13D newProduct.UnitsInStock = 50 newProduct.UnitsOnOrder=0 newProduct.Save() I do never see this save() function in my entites is their something I am doing wrong at my design time in the entity editor

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 23-Jun-2009 12:45:26   

newProduct.Save() I do never see this save() function in my entites is their something I am doing wrong at my design time in the entity editor

Most probably you have generated the code based on the Adapter templates set, would you please confirm this.

In this case you should use a DataAccessAdapter object to save your entities, please refer to the manual.

Or you might want to re-generate the code based on the SelfServicing templates set.