akasarto / aspnet-mvc5-starter-template Goto Github PK
View Code? Open in Web Editor NEWAsp.Net MVC 5 Starter Kit is a S.O.L.I.D, clean and globalized template with all the necessary boilerplate, ready to go.
License: MIT License
Asp.Net MVC 5 Starter Kit is a S.O.L.I.D, clean and globalized template with all the necessary boilerplate, ready to go.
License: MIT License
Hi it would be nice to also add suport for RoleGroups.
If Nike and Puma were separate groups/companies, we need to separate the managers/roles
ManagersNIke
for e.g. all roles (ManagNIke, BossNike, AdminNike)
ManagersPuma
Hello, this is a great great template. Very clean!!
thanks
We can override the default scaffolder
Sample 1 T4, this allows to do custom CRUD controllers with Sarto Specific styles/logic when scaffolding the CRUD controllers. Sample 2
Hi, can you please add these views. I am sharing the main code with pull requests.
I would also like to help do groups, another ticket :)
public class Users_in_Role_ViewModel
{
public string UserId { get; set; }
public string Username { get; set; }
public string Email { get; set; }
public string Role { get; set; }
}
public ActionResult UsersWithRoles()
{
var usersWithRoles = (from user in context.Users
select new
{
UserId = user.Id,
Username = user.UserName,
Email = user.Email,
RoleNames = (from userRole in user.Roles
join role in context.Roles on userRole.RoleId
equals role.Id
select role.Name).ToList()
}).ToList().Select(p => new Users_in_Role_ViewModel()
{
UserId = p.UserId,
Username = p.Username,
Email = p.Email,
Role = string.Join(",", p.RoleNames)
});
return View(usersWithRoles);
}
Hello, this is very nice template can you please update.
I was able to successfully update all nugets and build, but an error with this string...
Severity Code Description Project File Line Suppression State
Error CS0103 The name 'ErrorMessageSource' does not exist in the current context App.UI.Mvc5
F:\platform-solutions\App.UI.Mvc5\Infrastructure\Validation\RequiredCheckboxValidator.cs 28 Active
public IEnumerable<ModelClientValidationRule> GetClientValidationRules(ModelMetadata metadata, ControllerContext context)
{
var messageFormatter = new MessageFormatter().AppendPropertyName(metadata.DisplayName);
var FormatterdMessage = messageFormatter.BuildMessage(ErrorMessageSource.GetString(null));
var rule = new ModelClientValidationRule
{
ErrorMessage = FormatterdMessage,
ValidationType = "requiredcheckbox"
};
yield return rule;
}
Hi, I noticed a huge performance boost when I installed 4.71 for this project. In the next checkin a simple update to 4.72 .NET should be fairly fast, just right click on project->properties and after you install the below updates, you can change to 4.72 easily.
Also Bootstrap & razor Views have been updated
But now, they released runtime 4.72 & updated BCL 4.72 here
Hi, this is very very nice ๐
reading your help, I was able to run app.cmd install from power shell, but when I run the app.
SimpleInjector.SimpleInjectorMvcExtensions.RegisterMvcIntegratedFilterProvider..
System.IO.FileLoadException
HResult=0x80131040
Message=Could not load file or assembly 'System.Web.Mvc, Version=5.2.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source=SimpleInjector.Integration.Web.Mvc
StackTrace:
at SimpleInjector.SimpleInjectorMvcExtensions.RegisterMvcIntegratedFilterProvider(Container container)
at App.UI.Mvc5.Initializer.GetContainer() in C:\aspnet-mvc5-sarto\sources\App.UI.Mvc5\Initializer.cs:line 72
at App.UI.Mvc5.Initializer.ConfigureDependencyInjectionContainer(IAppBuilder appBuilder) in C:\aspnet-mvc5-sarto\sources\App.UI.Mvc5\Initializer.cs:line 89
at App.UI.Mvc5.Initializer.Initialize(IAppBuilder appBuilder) in C:\aspnet-mvc5-sarto\sources\App.UI.Mvc5\Initializer.cs:line 56
Inner Exception 1:
FileLoadException: Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Hello, can you please tell me how to ensure the route table get the area routes.
I added the below routes and even added the TopMenuItem.Cs in the Management area, it still did not find the route. I get an error - RouteTable error
.
<ul class="nav navbar-nav mr-auto">
<li class="nav-item @Menu.IfActiveItem("root.landing", "active", string.Empty)">
<a class="nav-link" href="@Url.GetHomeUrl()">@GetLocalizedString("Home")</a>
</li>
@Html.Action("TopMenuItem", "_Menu", new { area = AppAreas.GetAreaName(Area.Features) })
@Html.Action("TopMenuItem", "_Menu", new { area = AppAreas.GetAreaName(Area.Blank) })
@*@Html.Action("TopMenuItem", "_Menu", new { area = AppAreas.GetAreaName(Area.Users) })*@
@*@Html.Action("TopMenuItem", "_Menu", new { area = AppAreas.GetAreaName(Area.Management) })*@
</ul>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.