Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> IsDirty
 

Pages: 1
Bugs & Issues
IsDirty
Page:1/1 

  Print all messages in this thread  
Poster Message
Pablo
User



Location:
Sneek
Joined on:
21-Mar-2005 01:17:52
Posted:
81 posts
# Posted on: 16-Jun-2008 10:04:16.  
Hello,

I ran into unexpected behavior.

Scenario 1:

CustomerEntity customer = new CustomerEntity();
customer.Name = "John";

This results in customer.IsDirty == true! Which I believe is correct. In this case save() actually produces a row in the database.


However, with scenario 2:

CustomerEntity customer = new CustomerEntity();
customer.Fields["Name"].CurrentValue = "John";

Results in: customer.IsDirty == false. In this case save() does not produce anything.

Is this strange or not??? I explicitly set the IsDirty property to true in my scenario 2 in order to be able to save, but I thought I mention it as I expect it to be a bug.

Paul


  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14473 posts
# Posted on: 16-Jun-2008 10:24:14.  
This is not a bug, you shouldn't set the CurrentValue directly.
Or else you'd have to take care of the plumbing.


  Top
Pablo
User



Location:
Sneek
Joined on:
21-Mar-2005 01:17:52
Posted:
81 posts
# Posted on: 16-Jun-2008 11:11:24.  
Walla,

I see, and agree!

thank you again for your quick response and insight!!

Paul
  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.