sql server 2008 - Comparing TimeStamp value in C# -
I created a new column in an existing database, allowing me to allow Rovers to operate concurrency:
Changing the table MyTable columnName Add lineworld
In my class I added the following property
by public [] columnname {get ; Set; }
In this method I use an error when using this property
Effectively on System.Data.Linq .binary 'can not change type' byte [] '
I am removing this property by adding toArray (myObj.ColumnName.ToArray ())
I am
My ASP. In the net page, I add a hidden control to a repeater and
Rohhindfide Value = Convert. Assign values to ToBase64String (myObj.ColumnName);
Now I am trying to compare this column with that object
pubic bool myObject objFound = GetAllObjects.First ( O = & gt; O.ID = myObj.ID); If (objFound.ColumnName == myObj.ColumnName)
but the values are not the same?
After reading some links in changing the timestamp, I have tried
appreciate any help on this.
I do not know anything about the SQL linear format. It seems that the links given by the MSS in the comments will help you if you care about it.
But if you care about all equality , then it should only be enough to compare two byte [] objects with the problem of your code is that arrays are equal ( ) Or provide a == surcharge. By using == simply compares two object references, which is always the same.
See the question already asked for how to (and easily) compare two arrays in the right way:
Comments
Post a Comment