[ENHANCE] - Added Module to NameSpace [Owner].Module.[Module]

[ENHANCE] - Added Module to NameSpace [Owner].Module.[Module]
This commit is contained in:
vnetonline
2023-06-20 16:52:50 +10:00
parent fcb05a7834
commit 3abe47ae9e
32 changed files with 76 additions and 87 deletions

View File

@ -7,9 +7,9 @@ using Oqtane.Models;
using Oqtane.Infrastructure;
using Oqtane.Enums;
using Oqtane.Repository;
using [Owner].[Module].Repository;
using [Owner].Module.[Module].Repository;
namespace [Owner].[Module].Manager
namespace [Owner].Module.[Module].Manager
{
public class [Module]Manager : MigratableModuleBase, IInstallable, IPortable
{
@ -32,7 +32,7 @@ namespace [Owner].[Module].Manager
return Migrate(new [Module]Context(_DBContextDependencies), tenant, MigrationType.Down);
}
public string ExportModule(Module module)
public string ExportModule(Oqtane.Models.Module module)
{
string content = "";
List<Models.[Module]> [Module]s = _[Module]Repository.Get[Module]s(module.ModuleId).ToList();
@ -43,7 +43,7 @@ namespace [Owner].[Module].Manager
return content;
}
public void ImportModule(Module module, string content, string version)
public void ImportModule(Oqtane.Models.Module module, string content, string version)
{
List<Models.[Module]> [Module]s = null;
if (!string.IsNullOrEmpty(content))