Comments (6)
Any update on this issue. The schema is not getting updated and throws the above exception
from fluent-nhibernate.
how to connect nhibernate with Microsoft.Data.Sqlite without using extensions and make schema update work
from fluent-nhibernate.
Thanks. I don't really know what is Hibernate.Extensions.Sqlite.SqliteDialect
. I'll take a look at the issue later in the week.
from fluent-nhibernate.
To use nhibernate with Microsoft.data.sqlite to support creation and updation of tables - what driver and dialect to be used ?
any examples available ?
from fluent-nhibernate.
Hi,
Found the exact point of the error
GetTables method of nhibernate is passing second argument and sqlconnection.cs class of Microsoft.Data.Sqlite is throing exception is 2nd argument is passed. Can some one help me with this
from fluent-nhibernate.
So, it looks like Microsoft.Data.Sqlite simply does not support a feature required by NHibernate for schema-update. The easier way to solve this is to ask for the feature on Microsoft side, if you find where to ask. But it seems they do not intend implementing it due to how they document this lack of support.
DbConnection.GetSchema()
isn't implemented. This API isn't well-defined, so we recommend retrieving database metadata directly using standard SQLite APIs like the sqlite_master table and the table_info PRAGMA.For more information, see Metadata.
On that later link:
Microsoft.Data.Sqlite doesn't implement the GetSchema method on DbConnection. Instead, you can query directly for schema information using the sqlite_master table and PRAGMA statements like table_info and foreign_key_list.
So, your other option is to implement your own SQLiteDataBaseMetaData
following the recommendations of the above documentation.
from fluent-nhibernate.
Related Issues (20)
- TrustServerCertificate HOT 1
- A non collectible assembly may not reference a collectible assembly HOT 1
- Postgres wrong data type/s HOT 2
- Issue while using "SQLAnywhere17" Fluent nhibernate HOT 1
- FIPS-related error on FIPS 140 enabled Windows system HOT 9
- NHibernate Set() equivalent or Join on collection
- Property convention does not apply precision HOT 1
- Add support Cache.never HOT 1
- Is it possible to add a UnMap method on ClassMap?
- IAutoMappingOverride doesn't take care about ignored property HOT 1
- fluent NHibernate not saving the foreign key in HasMany. The column remains null HOT 1
- Microsoft.Data.Sqlite v6 crashes with ArgumentException HOT 5
- Dependency Dashboard
- HasOne Linq select query issue
- [Feature] Create a convention interface for NaturalId (INaturalIdConvention) HOT 1
- nhibernate has invalid child element 'add' HOT 1
- connectionstring not working in nhibernate.xml
- GenericADOException - Error in sql request generation when null checking a hasmany reference of an abstract class
- Missing README file in NuGet package
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 fluent-nhibernate.