Comments (1)
You define composite primary key by combining all PK fields into one distinct expression.
In your example, you may define a function like this:
string MyComplexKey(MyEntity e) { return e.PK1 + (char)1 + e.PK2; }
Later on, use MyComplexKey function to construct this composite key and pass it into normal LoadByKey function. Unfortunately, key range queries are complicated for such composite keys.
from lex.db.
Related Issues (20)
- Xamarin iOS Error HOT 5
- System.NullReferenceException on Save HOT 1
- Windows 10 Universal App Platform error HOT 4
- Specified method is not supported.
- Publish XML comments with NuGet
- Add support for unsigned data types HOT 1
- UWP release build error HOT 6
- Feature request: Sorting index-query results by index key. HOT 3
- Unable to target portable .NET profile 111 HOT 4
- System.Reflection.TargetException after upgrading to v 1.2.6 HOT 3
- ArgumentException when using 3 member index on iOS. HOT 2
- Database upgrade problem from 8.1 to 10 HOT 1
- Xamarin Forms iOS - Path is Null HOT 4
- .Net Native Error HOT 3
- Read database data
- Is db.Dispose() necessary? HOT 1
- Same model objects in different tables HOT 1
- [iOS] - Cannot store/retrieve float data type
- .netstandard support HOT 3
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 lex.db.