The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

BUG: ProxyStub use of GetOriginalColumnValue in key values incorrect? (Beta IV)

Last post 06-09-2008, 6:56 PM by Mike.Griffin. 1 replies.
Sort Posts: Previous Next
  •  06-09-2008, 3:38 PM 9709

    BUG: ProxyStub use of GetOriginalColumnValue in key values incorrect? (Beta IV)

    I think I've found a bug in the class generation for ProxyStubs. When it generates the property for the table's primary key, it seems to use the incorrect metadata member to get the columns old key value. I think "AddressMetadata.PropertyNames.AddressId" below should be "ActivityMetadata.ColumnNames.ActivityId". At least, changing it to that makes it work as expected. :)


     

    Code:
            [DataMember(Order=0, EmitDefaultValue=false)]
            public System.Int32? AddressId
            {
                get 
                { 
                    if (this.Entity.es.IsDeleted)
    					return (System.Int32?)this.Entity.
    						GetOriginalColumnValue(AddressMetadata.PropertyNames.AddressId);
                    else
                        return this.Entity.AddressId;
                }
                set { this.Entity.AddressId = value; }
            }
     
  •  06-09-2008, 6:56 PM 9712 in reply to 9709

    Re: BUG: ProxyStub use of GetOriginalColumnValue in key values incorrect? (Beta IV)

    Fixed it tonight, thanx, it will be in the release candidate.

     


    EntitySpaces | Twitter | BLOG | Please honor our Software License
View as RSS news feed in XML