Comments (2)
To fix my problem, I added the following line before SetPrimaryKey(pkVal) in ActiveRecord.cs.
pkVal = Convert.ChangeType(pkVal, BaseSchema.PrimaryKey.GetPropertyType());
Now my object.Equals() call works perfectly and my CompareTo() function correctly returns only the columns that have values different between the two objects.
from subsonic-2.0.
This has been merged into the trunk. Thanks.
from subsonic-2.0.
Related Issues (20)
- Records retrieved via ExecuteSingle have isNew = true
- Scaffold control broken for tables with GUID (uniqueidentifier) primary keys.
- Pull requests are being ignored HOT 2
- Parameters assigned by InlineQuery are always of type DbType.AnsiString
- StoredProcedures.cs not being generated as Sps are too big.
- ActiveList's _deleteList collection
- Subsonic scaffold control missing key functionality HOT 2
- Pagination does not work when using OracleDataProvider and SqlQuery
- GetCountSelect() returns invalid SQL (SubSonic 2.2, Oracle 9.2)
- Distinct() does not insert DISTINCT keyword when generating SQL. (SubSonic 2.2, Oracle 9.2) HOT 9
- OracleDataProvider.GetDbTypeOracle returns incorrect value HOT 3
- Utility.IsSql2005 evaluation is causing error: -'ROW_NUMBER' is not a recognized function name- If using sql 2000 HOT 1
- Aggregate query errors when using .Paged() HOT 2
- Bad Code in Constraint
- ParseExpression - breaks any query that happens to contain the ColumnName HOT 4
- ODSController does not update nullable columns to null values
- DataService uses ANSISqlGenerator for Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 HOT 3
- AnsiSqlGenerator causes SQL syntax error for "where ... in (new select...)" statement HOT 2
- SqlQuery produces incorrect SQL when similar IN clauses used
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subsonic-2.0.