mirror of https://github.com/abpframework/abp.git
135 changed files with 4766 additions and 4947 deletions
@ -1,10 +1,9 @@ |
|||||
namespace MyCompanyName.MyProjectName.Permissions |
namespace MyCompanyName.MyProjectName.Permissions; |
||||
|
|
||||
|
public static class MyProjectNamePermissions |
||||
{ |
{ |
||||
public static class MyProjectNamePermissions |
public const string GroupName = "MyProjectName"; |
||||
{ |
|
||||
public const string GroupName = "MyProjectName"; |
|
||||
|
|
||||
//Add your own permission names. Example:
|
//Add your own permission names. Example:
|
||||
//public const string MyPermission1 = GroupName + ".MyPermission1";
|
//public const string MyPermission1 = GroupName + ".MyPermission1";
|
||||
} |
} |
||||
} |
|
||||
|
|||||
@ -1,14 +1,13 @@ |
|||||
using AutoMapper; |
using AutoMapper; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName |
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
public class MyProjectNameApplicationAutoMapperProfile : Profile |
||||
{ |
{ |
||||
public class MyProjectNameApplicationAutoMapperProfile : Profile |
public MyProjectNameApplicationAutoMapperProfile() |
||||
{ |
{ |
||||
public MyProjectNameApplicationAutoMapperProfile() |
/* You can configure your AutoMapper mapping configuration here. |
||||
{ |
* Alternatively, you can split your mapping configurations |
||||
/* You can configure your AutoMapper mapping configuration here. |
* into multiple profile classes for a better organization. */ |
||||
* Alternatively, you can split your mapping configurations |
|
||||
* into multiple profile classes for a better organization. */ |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,13 +1,12 @@ |
|||||
using Microsoft.AspNetCore.Mvc; |
using Microsoft.AspNetCore.Mvc; |
||||
using Volo.Abp.AspNetCore.Mvc; |
using Volo.Abp.AspNetCore.Mvc; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered.Components.Toolbar.LoginLink |
namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered.Components.Toolbar.LoginLink; |
||||
|
|
||||
|
public class LoginLinkViewComponent : AbpViewComponent |
||||
{ |
{ |
||||
public class LoginLinkViewComponent : AbpViewComponent |
public virtual IViewComponentResult Invoke() |
||||
{ |
{ |
||||
public virtual IViewComponentResult Invoke() |
return View("~/Components/Toolbar/LoginLink/Default.cshtml"); |
||||
{ |
|
||||
return View("~/Components/Toolbar/LoginLink/Default.cshtml"); |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,9 +1,8 @@ |
|||||
using Volo.Abp.AspNetCore.Mvc.Authentication; |
using Volo.Abp.AspNetCore.Mvc.Authentication; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered.Controllers |
namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered.Controllers; |
||||
|
|
||||
|
public class AccountController : ChallengeAccountController |
||||
{ |
{ |
||||
public class AccountController : ChallengeAccountController |
|
||||
{ |
|
||||
|
|
||||
} |
} |
||||
} |
|
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered.Menus |
namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered.Menus; |
||||
|
|
||||
|
public class MyProjectNameMenus |
||||
{ |
{ |
||||
public class MyProjectNameMenus |
private const string Prefix = "MyProjectName"; |
||||
{ |
public const string Home = Prefix + ".Home"; |
||||
private const string Prefix = "MyProjectName"; |
|
||||
public const string Home = Prefix + ".Home"; |
|
||||
|
|
||||
//Add your menu items here...
|
//Add your menu items here...
|
||||
|
|
||||
} |
} |
||||
} |
|
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
using Volo.Abp.Ui.Branding; |
using Volo.Abp.Ui.Branding; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered |
namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered; |
||||
|
|
||||
|
[Dependency(ReplaceServices = true)] |
||||
|
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
||||
{ |
{ |
||||
[Dependency(ReplaceServices = true)] |
public override string AppName => "MyProjectName"; |
||||
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
|
||||
{ |
|
||||
public override string AppName => "MyProjectName"; |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,13 +1,12 @@ |
|||||
using MyCompanyName.MyProjectName.Localization; |
using MyCompanyName.MyProjectName.Localization; |
||||
using Volo.Abp.AspNetCore.Components; |
using Volo.Abp.AspNetCore.Components; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered |
namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered; |
||||
|
|
||||
|
public abstract class MyProjectNameComponentBase : AbpComponentBase |
||||
{ |
{ |
||||
public abstract class MyProjectNameComponentBase : AbpComponentBase |
protected MyProjectNameComponentBase() |
||||
{ |
{ |
||||
protected MyProjectNameComponentBase() |
LocalizationResource = typeof(MyProjectNameResource); |
||||
{ |
|
||||
LocalizationResource = typeof(MyProjectNameResource); |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,7 +1,6 @@ |
|||||
namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered.Pages |
namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered.Pages; |
||||
|
|
||||
|
public partial class Index |
||||
{ |
{ |
||||
public partial class Index |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
namespace MyCompanyName.MyProjectName.Blazor.Server.Menus |
namespace MyCompanyName.MyProjectName.Blazor.Server.Menus; |
||||
|
|
||||
|
public class MyProjectNameMenus |
||||
{ |
{ |
||||
public class MyProjectNameMenus |
private const string Prefix = "MyProjectName"; |
||||
{ |
public const string Home = Prefix + ".Home"; |
||||
private const string Prefix = "MyProjectName"; |
|
||||
public const string Home = Prefix + ".Home"; |
|
||||
|
|
||||
//Add your menu items here...
|
//Add your menu items here...
|
||||
|
|
||||
} |
} |
||||
} |
|
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
using Volo.Abp.Ui.Branding; |
using Volo.Abp.Ui.Branding; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Blazor.Server |
namespace MyCompanyName.MyProjectName.Blazor.Server; |
||||
|
|
||||
|
[Dependency(ReplaceServices = true)] |
||||
|
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
||||
{ |
{ |
||||
[Dependency(ReplaceServices = true)] |
public override string AppName => "MyProjectName"; |
||||
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
|
||||
{ |
|
||||
public override string AppName => "MyProjectName"; |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,13 +1,12 @@ |
|||||
using MyCompanyName.MyProjectName.Localization; |
using MyCompanyName.MyProjectName.Localization; |
||||
using Volo.Abp.AspNetCore.Components; |
using Volo.Abp.AspNetCore.Components; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Blazor.Server |
namespace MyCompanyName.MyProjectName.Blazor.Server; |
||||
|
|
||||
|
public abstract class MyProjectNameComponentBase : AbpComponentBase |
||||
{ |
{ |
||||
public abstract class MyProjectNameComponentBase : AbpComponentBase |
protected MyProjectNameComponentBase() |
||||
{ |
{ |
||||
protected MyProjectNameComponentBase() |
LocalizationResource = typeof(MyProjectNameResource); |
||||
{ |
|
||||
LocalizationResource = typeof(MyProjectNameResource); |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,7 +1,6 @@ |
|||||
namespace MyCompanyName.MyProjectName.Blazor.Server.Pages |
namespace MyCompanyName.MyProjectName.Blazor.Server.Pages; |
||||
|
|
||||
|
public partial class Index |
||||
{ |
{ |
||||
public partial class Index |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
namespace MyCompanyName.MyProjectName.Blazor.Menus |
namespace MyCompanyName.MyProjectName.Blazor.Menus; |
||||
|
|
||||
|
public class MyProjectNameMenus |
||||
{ |
{ |
||||
public class MyProjectNameMenus |
private const string Prefix = "MyProjectName"; |
||||
{ |
public const string Home = Prefix + ".Home"; |
||||
private const string Prefix = "MyProjectName"; |
|
||||
public const string Home = Prefix + ".Home"; |
|
||||
|
|
||||
//Add your menu items here...
|
//Add your menu items here...
|
||||
|
|
||||
} |
} |
||||
} |
|
||||
|
|||||
@ -1,12 +1,11 @@ |
|||||
using AutoMapper; |
using AutoMapper; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Blazor |
namespace MyCompanyName.MyProjectName.Blazor; |
||||
|
|
||||
|
public class MyProjectNameBlazorAutoMapperProfile : Profile |
||||
{ |
{ |
||||
public class MyProjectNameBlazorAutoMapperProfile : Profile |
public MyProjectNameBlazorAutoMapperProfile() |
||||
{ |
{ |
||||
public MyProjectNameBlazorAutoMapperProfile() |
//Define your AutoMapper configuration here for the Blazor project.
|
||||
{ |
|
||||
//Define your AutoMapper configuration here for the Blazor project.
|
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
using Volo.Abp.Ui.Branding; |
using Volo.Abp.Ui.Branding; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Blazor |
namespace MyCompanyName.MyProjectName.Blazor; |
||||
|
|
||||
|
[Dependency(ReplaceServices = true)] |
||||
|
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
||||
{ |
{ |
||||
[Dependency(ReplaceServices = true)] |
public override string AppName => "MyProjectName"; |
||||
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
|
||||
{ |
|
||||
public override string AppName => "MyProjectName"; |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,20 +1,19 @@ |
|||||
using Volo.Abp.Bundling; |
using Volo.Abp.Bundling; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Blazor |
namespace MyCompanyName.MyProjectName.Blazor; |
||||
|
|
||||
|
/* Add your global styles/scripts here. |
||||
|
* See https://docs.abp.io/en/abp/latest/UI/Blazor/Global-Scripts-Styles to learn how to use it
|
||||
|
*/ |
||||
|
public class MyProjectNameBundleContributor : IBundleContributor |
||||
{ |
{ |
||||
/* Add your global styles/scripts here. |
public void AddScripts(BundleContext context) |
||||
* See https://docs.abp.io/en/abp/latest/UI/Blazor/Global-Scripts-Styles to learn how to use it
|
|
||||
*/ |
|
||||
public class MyProjectNameBundleContributor : IBundleContributor |
|
||||
{ |
{ |
||||
public void AddScripts(BundleContext context) |
|
||||
{ |
|
||||
|
|
||||
} |
} |
||||
|
|
||||
public void AddStyles(BundleContext context) |
public void AddStyles(BundleContext context) |
||||
{ |
{ |
||||
context.Add("main.css", true); |
context.Add("main.css", true); |
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,13 +1,12 @@ |
|||||
using MyCompanyName.MyProjectName.Localization; |
using MyCompanyName.MyProjectName.Localization; |
||||
using Volo.Abp.AspNetCore.Components; |
using Volo.Abp.AspNetCore.Components; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Blazor |
namespace MyCompanyName.MyProjectName.Blazor; |
||||
|
|
||||
|
public abstract class MyProjectNameComponentBase : AbpComponentBase |
||||
{ |
{ |
||||
public abstract class MyProjectNameComponentBase : AbpComponentBase |
protected MyProjectNameComponentBase() |
||||
{ |
{ |
||||
protected MyProjectNameComponentBase() |
LocalizationResource = typeof(MyProjectNameResource); |
||||
{ |
|
||||
LocalizationResource = typeof(MyProjectNameResource); |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,7 +1,6 @@ |
|||||
namespace MyCompanyName.MyProjectName.Blazor.Pages |
namespace MyCompanyName.MyProjectName.Blazor.Pages; |
||||
|
|
||||
|
public partial class Index |
||||
{ |
{ |
||||
public partial class Index |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,24 +1,23 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; |
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Blazor |
namespace MyCompanyName.MyProjectName.Blazor; |
||||
|
|
||||
|
public class Program |
||||
{ |
{ |
||||
public class Program |
public static async Task Main(string[] args) |
||||
{ |
{ |
||||
public static async Task Main(string[] args) |
var builder = WebAssemblyHostBuilder.CreateDefault(args); |
||||
{ |
|
||||
var builder = WebAssemblyHostBuilder.CreateDefault(args); |
|
||||
|
|
||||
var application = builder.AddApplication<MyProjectNameBlazorModule>(options => |
var application = builder.AddApplication<MyProjectNameBlazorModule>(options => |
||||
{ |
{ |
||||
options.UseAutofac(); |
options.UseAutofac(); |
||||
}); |
}); |
||||
|
|
||||
var host = builder.Build(); |
var host = builder.Build(); |
||||
|
|
||||
await application.InitializeAsync(host.Services); |
await application.InitializeAsync(host.Services); |
||||
|
|
||||
await host.RunAsync(); |
await host.RunAsync(); |
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,10 +1,9 @@ |
|||||
using Volo.Abp.Localization; |
using Volo.Abp.Localization; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Localization |
namespace MyCompanyName.MyProjectName.Localization; |
||||
|
|
||||
|
[LocalizationResourceName("MyProjectName")] |
||||
|
public class MyProjectNameResource |
||||
{ |
{ |
||||
[LocalizationResourceName("MyProjectName")] |
|
||||
public class MyProjectNameResource |
|
||||
{ |
|
||||
|
|
||||
} |
} |
||||
} |
|
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
namespace MyCompanyName.MyProjectName.MultiTenancy |
namespace MyCompanyName.MyProjectName.MultiTenancy; |
||||
|
|
||||
|
public static class MultiTenancyConsts |
||||
{ |
{ |
||||
public static class MultiTenancyConsts |
/* Enable/disable multi-tenancy easily in a single point. |
||||
{ |
* If you will never need to multi-tenancy, you can remove |
||||
/* Enable/disable multi-tenancy easily in a single point. |
* related modules and code parts, including this file. |
||||
* If you will never need to multi-tenancy, you can remove |
*/ |
||||
* related modules and code parts, including this file. |
public const bool IsEnabled = true; |
||||
*/ |
|
||||
public const bool IsEnabled = true; |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,7 +1,6 @@ |
|||||
namespace MyCompanyName.MyProjectName |
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
public static class MyProjectNameDomainErrorCodes |
||||
{ |
{ |
||||
public static class MyProjectNameDomainErrorCodes |
/* You can add your business exception error codes here, as constants */ |
||||
{ |
|
||||
/* You can add your business exception error codes here, as constants */ |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,9 +1,8 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Data |
namespace MyCompanyName.MyProjectName.Data; |
||||
|
|
||||
|
public interface IMyProjectNameDbSchemaMigrator |
||||
{ |
{ |
||||
public interface IMyProjectNameDbSchemaMigrator |
Task MigrateAsync(); |
||||
{ |
|
||||
Task MigrateAsync(); |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,16 +1,15 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Data |
namespace MyCompanyName.MyProjectName.Data; |
||||
|
|
||||
|
/* This is used if database provider does't define |
||||
|
* IMyProjectNameDbSchemaMigrator implementation. |
||||
|
*/ |
||||
|
public class NullMyProjectNameDbSchemaMigrator : IMyProjectNameDbSchemaMigrator, ITransientDependency |
||||
{ |
{ |
||||
/* This is used if database provider does't define |
public Task MigrateAsync() |
||||
* IMyProjectNameDbSchemaMigrator implementation. |
|
||||
*/ |
|
||||
public class NullMyProjectNameDbSchemaMigrator : IMyProjectNameDbSchemaMigrator, ITransientDependency |
|
||||
{ |
{ |
||||
public Task MigrateAsync() |
return Task.CompletedTask; |
||||
{ |
|
||||
return Task.CompletedTask; |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,9 +1,8 @@ |
|||||
namespace MyCompanyName.MyProjectName |
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
public static class MyProjectNameConsts |
||||
{ |
{ |
||||
public static class MyProjectNameConsts |
public const string DbTablePrefix = "App"; |
||||
{ |
|
||||
public const string DbTablePrefix = "App"; |
|
||||
|
|
||||
public const string DbSchema = null; |
public const string DbSchema = null; |
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,13 +1,12 @@ |
|||||
using Volo.Abp.Settings; |
using Volo.Abp.Settings; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Settings |
namespace MyCompanyName.MyProjectName.Settings; |
||||
|
|
||||
|
public class MyProjectNameSettingDefinitionProvider : SettingDefinitionProvider |
||||
{ |
{ |
||||
public class MyProjectNameSettingDefinitionProvider : SettingDefinitionProvider |
public override void Define(ISettingDefinitionContext context) |
||||
{ |
{ |
||||
public override void Define(ISettingDefinitionContext context) |
//Define your own settings here. Example:
|
||||
{ |
//context.Add(new SettingDefinition(MyProjectNameSettings.MySetting1));
|
||||
//Define your own settings here. Example:
|
|
||||
//context.Add(new SettingDefinition(MyProjectNameSettings.MySetting1));
|
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,10 +1,9 @@ |
|||||
namespace MyCompanyName.MyProjectName.Settings |
namespace MyCompanyName.MyProjectName.Settings; |
||||
|
|
||||
|
public static class MyProjectNameSettings |
||||
{ |
{ |
||||
public static class MyProjectNameSettings |
private const string Prefix = "MyProjectName"; |
||||
{ |
|
||||
private const string Prefix = "MyProjectName"; |
|
||||
|
|
||||
//Add your own setting names here. Example:
|
//Add your own setting names here. Example:
|
||||
//public const string MySetting1 = Prefix + ".MySetting1";
|
//public const string MySetting1 = Prefix + ".MySetting1";
|
||||
} |
} |
||||
} |
|
||||
|
|||||
File diff suppressed because it is too large
@ -1,13 +1,12 @@ |
|||||
using Microsoft.AspNetCore.Mvc; |
using Microsoft.AspNetCore.Mvc; |
||||
using Volo.Abp.AspNetCore.Mvc; |
using Volo.Abp.AspNetCore.Mvc; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Controllers |
namespace MyCompanyName.MyProjectName.Controllers; |
||||
|
|
||||
|
public class HomeController : AbpController |
||||
{ |
{ |
||||
public class HomeController : AbpController |
public ActionResult Index() |
||||
{ |
{ |
||||
public ActionResult Index() |
return Redirect("~/swagger"); |
||||
{ |
|
||||
return Redirect("~/swagger"); |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,13 +1,12 @@ |
|||||
using Microsoft.AspNetCore.Mvc; |
using Microsoft.AspNetCore.Mvc; |
||||
using Volo.Abp.AspNetCore.Mvc; |
using Volo.Abp.AspNetCore.Mvc; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Controllers |
namespace MyCompanyName.MyProjectName.Controllers; |
||||
|
|
||||
|
public class HomeController : AbpController |
||||
{ |
{ |
||||
public class HomeController : AbpController |
public ActionResult Index() |
||||
{ |
{ |
||||
public ActionResult Index() |
return Redirect("~/swagger"); |
||||
{ |
|
||||
return Redirect("~/swagger"); |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
using Volo.Abp.Ui.Branding; |
using Volo.Abp.Ui.Branding; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName |
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
[Dependency(ReplaceServices = true)] |
||||
|
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
||||
{ |
{ |
||||
[Dependency(ReplaceServices = true)] |
public override string AppName => "MyProjectName"; |
||||
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
|
||||
{ |
|
||||
public override string AppName => "MyProjectName"; |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,15 +1,14 @@ |
|||||
using MyCompanyName.MyProjectName.Localization; |
using MyCompanyName.MyProjectName.Localization; |
||||
using Volo.Abp.AspNetCore.Mvc; |
using Volo.Abp.AspNetCore.Mvc; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Controllers |
namespace MyCompanyName.MyProjectName.Controllers; |
||||
|
|
||||
|
/* Inherit your controllers from this class. |
||||
|
*/ |
||||
|
public abstract class MyProjectNameController : AbpControllerBase |
||||
{ |
{ |
||||
/* Inherit your controllers from this class. |
protected MyProjectNameController() |
||||
*/ |
|
||||
public abstract class MyProjectNameController : AbpControllerBase |
|
||||
{ |
{ |
||||
protected MyProjectNameController() |
LocalizationResource = typeof(MyProjectNameResource); |
||||
{ |
|
||||
LocalizationResource = typeof(MyProjectNameResource); |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
using System; |
using System; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Models.Test |
namespace MyCompanyName.MyProjectName.Models.Test; |
||||
|
|
||||
|
public class TestModel |
||||
{ |
{ |
||||
public class TestModel |
public string Name { get; set; } |
||||
{ |
|
||||
public string Name { get; set; } |
|
||||
|
|
||||
public DateTime BirthDate { get; set; } |
public DateTime BirthDate { get; set; } |
||||
} |
} |
||||
} |
|
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
using Volo.Abp.Ui.Branding; |
using Volo.Abp.Ui.Branding; |
||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName |
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
[Dependency(ReplaceServices = true)] |
||||
|
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
||||
{ |
{ |
||||
[Dependency(ReplaceServices = true)] |
public override string AppName => "MyProjectName"; |
||||
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
|
||||
{ |
|
||||
public override string AppName => "MyProjectName"; |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Pages |
namespace MyCompanyName.MyProjectName.Pages; |
||||
|
|
||||
|
public class IndexModel : AbpPageModel |
||||
{ |
{ |
||||
public class IndexModel : AbpPageModel |
public void OnGet() |
||||
{ |
{ |
||||
public void OnGet() |
|
||||
{ |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,18 +1,17 @@ |
|||||
using Microsoft.AspNetCore.Builder; |
using Microsoft.AspNetCore.Builder; |
||||
using Microsoft.Extensions.DependencyInjection; |
using Microsoft.Extensions.DependencyInjection; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName |
namespace MyCompanyName.MyProjectName; |
||||
|
|
||||
|
public class Startup |
||||
{ |
{ |
||||
public class Startup |
public void ConfigureServices(IServiceCollection services) |
||||
{ |
{ |
||||
public void ConfigureServices(IServiceCollection services) |
services.AddApplication<MyProjectNameIdentityServerModule>(); |
||||
{ |
} |
||||
services.AddApplication<MyProjectNameIdentityServerModule>(); |
|
||||
} |
|
||||
|
|
||||
public void Configure(IApplicationBuilder app) |
public void Configure(IApplicationBuilder app) |
||||
{ |
{ |
||||
app.InitializeApplication(); |
app.InitializeApplication(); |
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,23 +1,22 @@ |
|||||
using Volo.Abp.Data; |
using Volo.Abp.Data; |
||||
using Volo.Abp.MongoDB; |
using Volo.Abp.MongoDB; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.MongoDB |
namespace MyCompanyName.MyProjectName.MongoDB; |
||||
|
|
||||
|
[ConnectionStringName("Default")] |
||||
|
public class MyProjectNameMongoDbContext : AbpMongoDbContext |
||||
{ |
{ |
||||
[ConnectionStringName("Default")] |
/* Add mongo collections here. Example: |
||||
public class MyProjectNameMongoDbContext : AbpMongoDbContext |
* public IMongoCollection<Question> Questions => Collection<Question>(); |
||||
{ |
*/ |
||||
/* Add mongo collections here. Example: |
|
||||
* public IMongoCollection<Question> Questions => Collection<Question>(); |
|
||||
*/ |
|
||||
|
|
||||
protected override void CreateModel(IMongoModelBuilder modelBuilder) |
protected override void CreateModel(IMongoModelBuilder modelBuilder) |
||||
{ |
{ |
||||
base.CreateModel(modelBuilder); |
base.CreateModel(modelBuilder); |
||||
|
|
||||
//builder.Entity<YourEntity>(b =>
|
//builder.Entity<YourEntity>(b =>
|
||||
//{
|
//{
|
||||
// //...
|
// //...
|
||||
//});
|
//});
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,13 +1,12 @@ |
|||||
using Microsoft.AspNetCore.Mvc; |
using Microsoft.AspNetCore.Mvc; |
||||
using Volo.Abp.AspNetCore.Mvc; |
using Volo.Abp.AspNetCore.Mvc; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Web.Components.Toolbar.LoginLink |
namespace MyCompanyName.MyProjectName.Web.Components.Toolbar.LoginLink; |
||||
|
|
||||
|
public class LoginLinkViewComponent : AbpViewComponent |
||||
{ |
{ |
||||
public class LoginLinkViewComponent : AbpViewComponent |
public virtual IViewComponentResult Invoke() |
||||
{ |
{ |
||||
public virtual IViewComponentResult Invoke() |
return View("~/Components/Toolbar/LoginLink/Default.cshtml"); |
||||
{ |
|
||||
return View("~/Components/Toolbar/LoginLink/Default.cshtml"); |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,9 +1,8 @@ |
|||||
using Volo.Abp.AspNetCore.Mvc.Authentication; |
using Volo.Abp.AspNetCore.Mvc.Authentication; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Web.Controllers |
namespace MyCompanyName.MyProjectName.Web.Controllers; |
||||
|
|
||||
|
public class AccountController : ChallengeAccountController |
||||
{ |
{ |
||||
public class AccountController : ChallengeAccountController |
|
||||
{ |
|
||||
|
|
||||
} |
} |
||||
} |
|
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
namespace MyCompanyName.MyProjectName.Web.Menus |
namespace MyCompanyName.MyProjectName.Web.Menus; |
||||
|
|
||||
|
public class MyProjectNameMenus |
||||
{ |
{ |
||||
public class MyProjectNameMenus |
private const string Prefix = "MyProjectName"; |
||||
{ |
public const string Home = Prefix + ".Home"; |
||||
private const string Prefix = "MyProjectName"; |
|
||||
public const string Home = Prefix + ".Home"; |
|
||||
|
|
||||
//Add your menu items here...
|
//Add your menu items here...
|
||||
|
|
||||
} |
} |
||||
} |
|
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
using Volo.Abp.Ui.Branding; |
using Volo.Abp.Ui.Branding; |
||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Web |
namespace MyCompanyName.MyProjectName.Web; |
||||
|
|
||||
|
[Dependency(ReplaceServices = true)] |
||||
|
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
||||
{ |
{ |
||||
[Dependency(ReplaceServices = true)] |
public override string AppName => "MyProjectName"; |
||||
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
|
||||
{ |
|
||||
public override string AppName => "MyProjectName"; |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,12 +1,11 @@ |
|||||
using AutoMapper; |
using AutoMapper; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Web |
namespace MyCompanyName.MyProjectName.Web; |
||||
|
|
||||
|
public class MyProjectNameWebAutoMapperProfile : Profile |
||||
{ |
{ |
||||
public class MyProjectNameWebAutoMapperProfile : Profile |
public MyProjectNameWebAutoMapperProfile() |
||||
{ |
{ |
||||
public MyProjectNameWebAutoMapperProfile() |
//Define your AutoMapper configuration here for the Web project.
|
||||
{ |
|
||||
//Define your AutoMapper configuration here for the Web project.
|
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,18 +1,17 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
using Microsoft.AspNetCore.Authentication; |
using Microsoft.AspNetCore.Authentication; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Web.Pages |
namespace MyCompanyName.MyProjectName.Web.Pages; |
||||
|
|
||||
|
public class IndexModel : MyProjectNamePageModel |
||||
{ |
{ |
||||
public class IndexModel : MyProjectNamePageModel |
public void OnGet() |
||||
{ |
{ |
||||
public void OnGet() |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
|
|
||||
public async Task OnPostLoginAsync() |
|
||||
{ |
|
||||
await HttpContext.ChallengeAsync("oidc"); |
|
||||
} |
|
||||
} |
} |
||||
} |
|
||||
|
public async Task OnPostLoginAsync() |
||||
|
{ |
||||
|
await HttpContext.ChallengeAsync("oidc"); |
||||
|
} |
||||
|
} |
||||
|
|||||
@ -1,13 +1,12 @@ |
|||||
using MyCompanyName.MyProjectName.Localization; |
using MyCompanyName.MyProjectName.Localization; |
||||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Web.Pages |
namespace MyCompanyName.MyProjectName.Web.Pages; |
||||
|
|
||||
|
public abstract class MyProjectNamePageModel : AbpPageModel |
||||
{ |
{ |
||||
public abstract class MyProjectNamePageModel : AbpPageModel |
protected MyProjectNamePageModel() |
||||
{ |
{ |
||||
protected MyProjectNamePageModel() |
LocalizationResourceType = typeof(MyProjectNameResource); |
||||
{ |
|
||||
LocalizationResourceType = typeof(MyProjectNameResource); |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
namespace MyCompanyName.MyProjectName.Web.Menus |
namespace MyCompanyName.MyProjectName.Web.Menus; |
||||
|
|
||||
|
public class MyProjectNameMenus |
||||
{ |
{ |
||||
public class MyProjectNameMenus |
private const string Prefix = "MyProjectName"; |
||||
{ |
public const string Home = Prefix + ".Home"; |
||||
private const string Prefix = "MyProjectName"; |
|
||||
public const string Home = Prefix + ".Home"; |
|
||||
|
|
||||
//Add your menu items here...
|
//Add your menu items here...
|
||||
|
|
||||
} |
} |
||||
} |
|
||||
|
|||||
@ -1,11 +1,10 @@ |
|||||
using Volo.Abp.Ui.Branding; |
using Volo.Abp.Ui.Branding; |
||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Web |
namespace MyCompanyName.MyProjectName.Web; |
||||
|
|
||||
|
[Dependency(ReplaceServices = true)] |
||||
|
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
||||
{ |
{ |
||||
[Dependency(ReplaceServices = true)] |
public override string AppName => "MyProjectName"; |
||||
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
|
||||
{ |
|
||||
public override string AppName => "MyProjectName"; |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
@ -1,12 +1,11 @@ |
|||||
using AutoMapper; |
using AutoMapper; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Web |
namespace MyCompanyName.MyProjectName.Web; |
||||
|
|
||||
|
public class MyProjectNameWebAutoMapperProfile : Profile |
||||
{ |
{ |
||||
public class MyProjectNameWebAutoMapperProfile : Profile |
public MyProjectNameWebAutoMapperProfile() |
||||
{ |
{ |
||||
public MyProjectNameWebAutoMapperProfile() |
//Define your AutoMapper configuration here for the Web project.
|
||||
{ |
|
||||
//Define your AutoMapper configuration here for the Web project.
|
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,10 +1,9 @@ |
|||||
namespace MyCompanyName.MyProjectName.Web.Pages |
namespace MyCompanyName.MyProjectName.Web.Pages; |
||||
|
|
||||
|
public class IndexModel : MyProjectNamePageModel |
||||
{ |
{ |
||||
public class IndexModel : MyProjectNamePageModel |
public void OnGet() |
||||
{ |
{ |
||||
public void OnGet() |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,15 +1,14 @@ |
|||||
using MyCompanyName.MyProjectName.Localization; |
using MyCompanyName.MyProjectName.Localization; |
||||
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Web.Pages |
namespace MyCompanyName.MyProjectName.Web.Pages; |
||||
|
|
||||
|
/* Inherit your PageModel classes from this class. |
||||
|
*/ |
||||
|
public abstract class MyProjectNamePageModel : AbpPageModel |
||||
{ |
{ |
||||
/* Inherit your PageModel classes from this class. |
protected MyProjectNamePageModel() |
||||
*/ |
|
||||
public abstract class MyProjectNamePageModel : AbpPageModel |
|
||||
{ |
{ |
||||
protected MyProjectNamePageModel() |
LocalizationResourceType = typeof(MyProjectNameResource); |
||||
{ |
|
||||
LocalizationResourceType = typeof(MyProjectNameResource); |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,18 +1,17 @@ |
|||||
using Microsoft.AspNetCore.Builder; |
using Microsoft.AspNetCore.Builder; |
||||
using Microsoft.Extensions.DependencyInjection; |
using Microsoft.Extensions.DependencyInjection; |
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Web |
namespace MyCompanyName.MyProjectName.Web; |
||||
|
|
||||
|
public class Startup |
||||
{ |
{ |
||||
public class Startup |
public void ConfigureServices(IServiceCollection services) |
||||
{ |
{ |
||||
public void ConfigureServices(IServiceCollection services) |
services.AddApplication<MyProjectNameWebModule>(); |
||||
{ |
} |
||||
services.AddApplication<MyProjectNameWebModule>(); |
|
||||
} |
|
||||
|
|
||||
public void Configure(IApplicationBuilder app) |
public void Configure(IApplicationBuilder app) |
||||
{ |
{ |
||||
app.InitializeApplication(); |
app.InitializeApplication(); |
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue