Comments (8)
Can I get a sample of your data model?
from linq2db.
internal class DatabasePicture
{
public ModerationStatus Status { get; set; }
}
public enum ModerationStatus
{
Pending = 0,
Accepted = 1,
Declined = 2
}
from linq2db.
And query if possible.
from linq2db.
new DataContext()
.GetTable<DatabasePicture>()
.Where(_ => _.Status == ModerationStatus.Accepted)
.Count();
СУБД: MSSQL2012
from linq2db.
I have added a test to reproduce the problem - 3c17331
It works fine.
from linq2db.
Извиняюсь, проблема действительно не в enum'ах. Я не знаю почему, но у меня выпадает ошибка "Member is not a table column." на любом свойстве, используемом в запросе, если оно явно не помечено атрибутом Column.
from linq2db.
It is by design. If you decorate your class with [Table] attribute, you should decorate all your columns with [Column] attribute. As an option you can use flag IsColumnAttributeRequired=false.
from linq2db.
Понятно. Просто в BLToolkit было другое поведение.
from linq2db.
Related Issues (20)
- PostgreSQLBulkCopy performance degradation for method BulkCopyType.ProviderSpecific
- Method not found in target type: Microsoft.Data.Sqlite.SqliteConnection.ClearAllPools() HOT 4
- Linq2Db not all stored procedures scaffolding HOT 3
- Use custom property Getters in Linq queries HOT 5
- Remove `timestamp` "type" special handling in SQLite schema provider HOT 1
- [Association] with QueryExpressionMethod does not honor CanBeNull property HOT 3
- Connection pool depletion when using new DataContext(...), together with LoadWith and FirstOrDefault (or SingleOrDefault) HOT 6
- NotImplementedException when filtering on a sub-query HOT 9
- InheritanceMappingAttribute is working incorrectly when abstract class is present in inheritance tree HOT 5
- BulkCopy failure on CLOB HOT 1
- ConstantExpressions do not get parameterized in SQL statements HOT 1
- [QUESTION] Terminate a query by cancellation token HOT 5
- default-schemas not working
- Firebird different number datatype between constant or variable usage HOT 2
- Task-spawning code refactoring HOT 2
- WithOptions<T> looses CommandTimeout property
- Association property is null, while query is correct HOT 2
- Exception using Converter HOT 1
- Read some json values, Common Language Runtime detected an invalid program. HOT 5
- update documentation to show how to use fluent mapping
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 linq2db.