I have name of database. Let's name of database is db1.
I want to assign this database name to Database type/
Like : Database dt1 = db1;
It's showing error that string can not be assigned to database type.
Assuming that you're using SQLite, then the name of the database file in the file system is defined when you create the database. This does not need to be the same as the name of the variable assigned to the database connection or repository in code.
However, what you actually want to do is not clear from your post above. Can you explain in more detail what you want to achieve please?
Is it possible to create database as follows ,
srv = new Server();
db = new Database(srv, "db1");
I hope this will clear my question to you. Please
I hope this will clear my question to you. Please help me for this query.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies