Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Issue while using "SQLAnywhere17" Fluent nhibernate #516

Unanswered
sravangontla asked this question in Q&A
Discussion options

Hi Team,
I am unable to perform DML operations using Fluent nhibernate.

Code :

            var sessionFactory = CreateSessionFactory();
            using (var session = sessionFactory.OpenSession())
            {
                using (var transaction = session.BeginTransaction())
                {
                    var newObject = new model{  };
                    session.SaveAsync(newObject);

                    transaction.Commit();
                }
            }

Error Details :
Error raised while calling transaction.commit() statement. And respective error is "System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.' "

Env:
netcoreapp3.1
FluentNHibernate => Version="3.1.0"

Thanks,
Sravan G

You must be logged in to vote

Replies: 2 comments

Comment options

Please provide the session factory configuration code.

You must be logged in to vote
0 replies
Comment options

Please use SybaseSQLAnywhereDriver with iAnywhere.Data.SQLAnywhere.NETCore package or OdbcDriver with System.Data.Odbc package. The SapSQLAnywhere17Driver is .NET 4.5 only and does not support .NET Core.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.