Error after generating entities

Posts   
 
    
madhavi
User
Posts: 25
Joined: 16-Jan-2006
# Posted on: 23-Jul-2007 22:41:44   

Hi,

After generating entites, I am getting this error

Property or indexer 'SD.LLBLGen.Pro.ORMSupportClasses.IFieldPersistenceInfo.IdentityValueSequenceName' cannot be assigned to -- it is read only

in DataAccessAdapter.cs.

could you please help me with this?

Thanks in advance!

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 24-Jul-2007 04:48:32   

Hi madhavi, In most cases, the compile errors after generating code is because the folder is kind of dirty (you generate SS and Adapter or maybe other projects, etc.). Try generate in an empty folder an compile again.

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 24-Jul-2007 11:51:49   

Also be sure, if you've also installed the v2.5 beta, to reference the v2.0 runtime libs. Or if you've also installed v1.0.2005.1, to reference the v2.0 runtime libs.

Frans Bouma | Lead developer LLBLGen Pro
madhavi
User
Posts: 25
Joined: 16-Jan-2006
# Posted on: 24-Jul-2007 22:31:18   

Hi,

I tried generated it again by cleaning the folder but still got the same error. I am using version 1.0.2004.2.

Thanks!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 25-Jul-2007 11:25:50   

The error is very odd. Please download the latest 1.0.2004.2 templates + runtime libraries from the customer area and try again.

(as the property is writable: )


/// <summary>
/// If <see cref="IsIdentity"/> is set to true, this property has to be set to the name of the sequence which supplies the value for the EntityField's
/// corresponding table field. On SqlServer this is @@IDENTITY or SCOPE_IDENTITY() and only used when the row is succesfully inserted, however on Oracle
/// f.e. this value is used to specify a new value and to retrieve the new value. Is undefined when <see cref="IsIdentity"/> is set to false.
/// </summary>
public string IdentityValueSequenceName 
{
    get { return _identityValueSequenceName; } 
    set { _identityValueSequenceName = value;}
}

Frans Bouma | Lead developer LLBLGen Pro