-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge the code from 'dynamic load branch' to 'master'
- Loading branch information
Showing
35 changed files
with
4,501 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using DemoReferenceLibrary; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace DemoPlugin2.Controllers | ||
{ | ||
[Area("DemoPlugin2")] | ||
public class Plugin1Controller : Controller | ||
{ | ||
public IActionResult HelloWorld() | ||
{ | ||
var content = new Demo().SayHello(); | ||
ViewBag.Content = content; | ||
return View(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.0</TargetFramework> | ||
<OutputType>Library</OutputType> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<OutputPath></OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\DemoReferenceLibrary\DemoReferenceLibrary.csproj" /> | ||
<ProjectReference Include="..\Mystique.Core\Mystique.Core.csproj" /> | ||
</ItemGroup> | ||
|
||
|
||
<ItemGroup> | ||
<None Update="Views\**"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using Mystique.Core.Contracts; | ||
using Mystique.Core.DomainModel; | ||
using Mystique.Core.Helpers; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace DemoPlugin2.Migrations | ||
{ | ||
public class Migration_1_0_0 : BaseMigration | ||
{ | ||
private static Mystique.Core.DomainModel.Version _version = new Mystique.Core.DomainModel.Version("1.0.0"); | ||
private static string _upScripts = @"CREATE TABLE [dbo].[Test3]( | ||
TestId[uniqueidentifier] NOT NULL, | ||
);"; | ||
private static string _downScripts = @"DROP TABLE [dbo].[Test3]"; | ||
|
||
public Migration_1_0_0(DbHelper dbHelper) : base(dbHelper, _version) | ||
{ | ||
|
||
} | ||
|
||
public override void MigrationDown(Guid pluginId) | ||
{ | ||
SQL(_downScripts); | ||
|
||
base.RemoveMigrationScripts(pluginId); | ||
} | ||
|
||
public override void MigrationUp(Guid pluginId) | ||
{ | ||
SQL(_upScripts); | ||
|
||
base.WriteMigrationScripts(pluginId, _upScripts, _downScripts); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@{ | ||
|
||
} | ||
|
||
<h1>@ViewBag.Content</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@{ | ||
Layout = "~/Views/Shared/_Layout.cshtml"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.