Shaun Walker
4913fab0b3
explicity specify optional and reload parameters
2023-02-24 14:21:03 -05:00
Shaun Walker
f2df8e96db
fix #2567 - migrate tenant connection string details from database to appsettings.json
2023-02-23 16:29:15 -05:00
Mark Davis
85ac8dd701
Make ActiveDatabase setter public
...
We have two cases where we need to override the active database: Unit Testing and added GraphQL. In both of these cases, we have a database context that is in a different scope than the automatically assigned active database during normal Oqtane startup. Our work-around has been to make this setter public. Unless there is a better solution to our cases, I feel this change would be useful for others as well.
2023-02-04 09:04:54 -08:00
isaeed
91a1bfcab2
adding SaveChangesAsync overloads to support Async save
2021-06-20 17:52:41 +05:00
Shaun Walker
a144a5c432
improved legacy support for module authorization policy
2021-05-27 21:01:25 -04:00
Charles Nurse
4a609b444e
Rename IOqtaneDatabase interface (and related base class)
2021-05-24 11:57:47 -07:00
Charles Nurse
47c04dc150
Convert Database projects so they build installable Packages rather than deploy to bin and modify installation to deploy Databases on demand as needed.
2021-05-20 12:39:09 -07:00
Charles Nurse
c036a9d11f
Remove DbConfig and new constructors on DbContextBase and refactor Migrations to use explcit generation of IOqtaneDatabase instance
2021-05-12 15:17:40 -07:00
Charles Nurse
92dd8354ba
Switch DBType to use the fully-qualified type name rather than a simple name
2021-05-12 10:22:17 -07:00
Shaun Walker
a5de639d15
optimizing tenant resolution and routing
2021-05-10 17:45:39 -04:00
Charles Nurse
e6530ee127
Added support for MySQL and ProgreSQL and AddSite/Tenant
2021-04-02 10:55:00 -07:00
Charles Nurse
2fb63e8117
Added suuport to inject an IOqtaneDatabase in EntityBuilders to allow each Database to control certain Migration behaviors. Also updated Installer to dynamically build Database Configuration section
2021-03-27 11:16:16 -07:00
Charles Nurse
3a032f401a
Added IDatabase interface and refactored to use it to handle database type - updated Installer to dynamically add databases to selector
2021-03-24 11:45:44 -07:00
Charles Nurse
cbcfc88492
Add support for Sqlite - Installation path tested but AddSite not supported yet
2021-03-23 11:06:18 -07:00
Charles Nurse
8f1c760e87
Updated the Installation of Oqtane to use Migrations
2021-03-21 14:52:45 -07:00
Charles Nurse
83e5502111
Creation of EF Core Migrations - these execute using EF Tools, but are not integrated to run programmatically
2021-03-19 17:01:49 -07:00
Charles Nurse
c64f350f36
Create new DbContextUtils class and move common SaveChanges code to this class. While MasterDbContext has no entities that support IDeletable it does not hurt to check and minimizes duplication
2021-03-06 16:06:29 -08:00
Charles Nurse
8376a09ad6
Create new UseOqtaneDatabase extension method and replace all uses of UseSqlServer.
...
This is a preparative step to locate all database configuration in one file.
2021-03-06 14:13:06 -08:00
Shaun Walker
c0ed7c7934
Localization fixes - table definition, SQL script naming, SQL script not marked as Embedded Resource, changed column name from IsCurrrent to IsDefault to reflect intent, set default language for site in _Host
2021-01-21 17:09:34 -05:00
Pavel Veselý
5af6f7a52d
Namespace Fix undo ( #340 )
2020-04-04 14:06:24 -04:00
Pavel Veselý
71bd3a8d6a
Namespace fix ( #335 )
2020-04-03 17:18:33 -04:00
Pavel Vesely
940cdcb349
Database Manager
...
done:
+ master.sql as resource
+ implemented incremental database changes also for Master
+ dbUp sql script variables implemented
+ improved database handling and creation code
+ simpified database creation
+ almost all Database and Tenant creation moved to DatabaseManager.cs (rest code marked with TODO)
+ Unattended install of master can be performed by settings in appsettings.json
+ Improved IsInstalled checking
+ Removed DBSchema field from Tenant
+ Default database and site creation moved to Program.Main
2020-03-29 14:45:02 +02:00
Pavel Vesely
5b3feaf26f
Server naming fixes and cleanup
...
Server is now completely cleaned up and without warnings
2020-03-15 11:53:24 +01:00
Hisham Bin Ateya
425b4e1c67
Fix casing for constructor params
2020-03-05 20:03:54 +03:00
Hisham Bin Ateya
303bdf3be2
Remove this keyword
2020-03-05 19:22:13 +03:00
Hisham Bin Ateya
a46235ea1e
Fix naming conventions for private fields
2020-03-05 01:46:53 +03:00
Shaun Walker
25d2c6596d
completed background job scheduler
2019-11-15 08:42:31 -05:00
Shaun Walker
6fa3b124d2
relocated IDeletable and added methods for downloading assemblies from server /bin when running under Wasm
2019-09-28 16:51:01 -04:00
Emanuele Filardo
4792ea697b
Rename Interface in IDeletable and property in IsDeleted
2019-09-27 18:50:25 +02:00
Emanuele Filardo
182a156bd8
Improved to skip new Added entities and if softdelete properties are unmodified
2019-09-27 18:40:24 +02:00
Emanuele Filardo
6ade59cc09
Add basic support for SoftDeletable
2019-09-27 18:40:24 +02:00
Shaun Walker
3af2ca0168
utilize _Imports.razor to simplify module declarations
2019-09-24 17:26:14 -04:00
Shaun Walker
f037898c6e
Multi-tenant role authorization
2019-08-25 14:52:25 -04:00
Shaun Walker
b71f007981
Support for third party modules, improved error handling, standardardized enum naming, reorganized interface definitions, support for DB script upgrades, added Settings entity
2019-08-14 09:34:35 -04:00