5 | */
6 | (function ($) {
7 | "use strict";
8 |
9 | $.extend($.fn.select2.defaults, {
10 | formatNoMatches: function () { return "Không tìm thấy kết quả"; },
11 | formatInputTooShort: function (input, min) { var n = min - input.length; return "Vui lòng nhập nhiều hơn " + n + " ký tự" + (n == 1 ? "" : "s"); },
12 | formatInputTooLong: function (input, max) { var n = input.length - max; return "Vui lòng nhập ít hơn " + n + " ký tự" + (n == 1? "" : "s"); },
13 | formatSelectionTooBig: function (limit) { return "Chỉ có thể chọn được " + limit + " tùy chọn" + (limit == 1 ? "" : "s"); },
14 | formatLoadMore: function (pageNumber) { return "Đang lấy thêm kết quả…"; },
15 | formatSearching: function () { return "Đang tìm…"; }
16 | });
17 | })(jQuery);
18 |
19 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Scripts/Select2-locales/select2_locale_zh-CN.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Select2 Chinese translation
3 | */
4 | (function ($) {
5 | "use strict";
6 | $.extend($.fn.select2.defaults, {
7 | formatNoMatches: function () { return "没有找到匹配项"; },
8 | formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";},
9 | formatInputTooLong: function (input, max) { var n = input.length - max; return "请删掉" + n + "个字符";},
10 | formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; },
11 | formatLoadMore: function (pageNumber) { return "加载结果中…"; },
12 | formatSearching: function () { return "搜索中…"; }
13 | });
14 | })(jQuery);
15 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Scripts/Select2-locales/select2_locale_zh-TW.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Select2 Traditional Chinese translation
3 | */
4 | (function ($) {
5 | "use strict";
6 | $.extend($.fn.select2.defaults, {
7 | formatNoMatches: function () { return "沒有找到相符的項目"; },
8 | formatInputTooShort: function (input, min) { var n = min - input.length; return "請再輸入" + n + "個字元";},
9 | formatInputTooLong: function (input, max) { var n = input.length - max; return "請刪掉" + n + "個字元";},
10 | formatSelectionTooBig: function (limit) { return "你只能選擇最多" + limit + "項"; },
11 | formatLoadMore: function (pageNumber) { return "載入中…"; },
12 | formatSearching: function () { return "搜尋中…"; }
13 | });
14 | })(jQuery);
15 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Scripts/_references.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PrecisionWebTechnologies/DynamicMVC/a7aac78639c76281e1b1ce00b79ba8f0ee16bdc7/DynamicMVC.UI/Scripts/_references.js
--------------------------------------------------------------------------------
/DynamicMVC.UI/Startup.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Owin;
2 | using Owin;
3 |
4 | [assembly: OwinStartupAttribute(typeof(DynamicMVC.UI.Startup))]
5 | namespace DynamicMVC.UI
6 | {
7 | public partial class Startup
8 | {
9 | public void Configuration(IAppBuilder app)
10 | {
11 | ConfigureAuth(app);
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Account/ConfirmEmail.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Confirm Email";
3 | }
4 |
5 | @ViewBag.Title.
6 |
7 |
8 | Thank you for confirming your email. Please @Html.ActionLink("Click here to Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
9 |
10 |
11 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Account/ExternalLoginFailure.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Login Failure";
3 | }
4 |
5 |
6 | @ViewBag.Title.
7 | Unsuccessful login with service.
8 |
9 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Account/ForgotPasswordConfirmation.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Forgot Password Confirmation";
3 | }
4 |
5 |
6 | @ViewBag.Title.
7 |
8 |
9 |
10 | Please check your email to reset your password.
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Account/ResetPasswordConfirmation.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Reset password confirmation";
3 | }
4 |
5 |
6 | @ViewBag.Title.
7 |
8 |
9 |
10 | Your password has been reset. Please @Html.ActionLink("click here to log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
11 |
12 |
13 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Account/SendCode.cshtml:
--------------------------------------------------------------------------------
1 | @model DynamicMVC.UI.Models.SendCodeViewModel
2 | @{
3 | ViewBag.Title = "Send";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("SendCode", "Account", new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) {
9 | @Html.AntiForgeryToken()
10 | @Html.Hidden("rememberMe", @Model.RememberMe)
11 | Send verification code
12 |
13 |
14 |
15 | Select Two-Factor Authentication Provider:
16 | @Html.DropDownListFor(model => model.SelectedProvider, Model.Providers)
17 |
18 |
19 |
20 | }
21 |
22 | @section Scripts {
23 | @Scripts.Render("~/bundles/jqueryval")
24 | }
25 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Home/About.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "About";
3 | }
4 | @ViewBag.Title.
5 | @ViewBag.Message
6 |
7 | Use this area to provide additional information.
8 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Home/Contact.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Contact";
3 | }
4 | @ViewBag.Title.
5 | @ViewBag.Message
6 |
7 |
8 | One Microsoft Way
9 | Redmond, WA 98052-6399
10 | P:
11 | 425.555.0100
12 |
13 |
14 |
15 | Support: Support@example.com
16 | Marketing: Marketing@example.com
17 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicControls/_DynamicTableHeader.cshtml:
--------------------------------------------------------------------------------
1 | @using DynamicMVC.UI.DynamicMVC.Helpers
2 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicControls.DynamicTableHeaderViewModel
3 |
4 | @if (Model.AllowSort)
5 | {
6 |
7 | @Ajax.DynamicSortNameActionLink(Model.DisplayName, "Index", "_Index", Model.TypeName, Model.RouteValueDictionaryWrapper, new AjaxOptions() { UpdateTargetId = "ajaxtable" }, Model.SortExpression)
8 | |
9 | }
10 | else
11 | {
12 | @Model.DisplayName |
13 | }
14 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicControls/_NextDesktopButton.cshtml:
--------------------------------------------------------------------------------
1 | @using DynamicMVC.UI.DynamicMVC.Extensions
2 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicIndexPageViewModel
3 |
4 | @Ajax.ActionLink("Next", "Index", Model.TypeName, Model.RouteValueDictionaryWrapper.CloneAndAddPage(1).GetRouteValueDictionary()
5 | , new AjaxOptions { UpdateTargetId = "ajaxtable", Url = Url.Action("_Index", Model.TypeName, Model.RouteValueDictionaryWrapper.CloneAndAddPage(1).GetRouteValueDictionary()) }
6 | , new { @id = "desktopNextLink" })
7 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicControls/_NextMobileButton.cshtml:
--------------------------------------------------------------------------------
1 | @using DynamicMVC.UI.DynamicMVC.Extensions
2 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicIndexViewModel
3 |
4 | @Ajax.ActionLink("Next", "Index", Model.TypeName, Model.RouteValueDictionaryWrapper.CloneAndAddPage(1).GetRouteValueDictionary()
5 | , new AjaxOptions { UpdateTargetId = "ajaxtable", Url = Url.Action("_Index", Model.TypeName, Model.RouteValueDictionaryWrapper.CloneAndAddPage(1).GetRouteValueDictionary()) }
6 | , new { @class = "btn btn-primary pull-right", @style = "vertical-align: bottom;", @id = "mobileNext" })
7 |
8 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicControls/_PreviousDesktopButton.cshtml:
--------------------------------------------------------------------------------
1 | @using DynamicMVC.UI.DynamicMVC.Extensions
2 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicIndexPageViewModel
3 |
4 | @Ajax.ActionLink("Previous", "Index", Model.TypeName, Model.RouteValueDictionaryWrapper.CloneAndAddPage(-1).GetRouteValueDictionary()
5 | , new AjaxOptions { UpdateTargetId = "ajaxtable", Url = Url.Action("_Index", Model.TypeName, Model.RouteValueDictionaryWrapper.CloneAndAddPage(-1).GetRouteValueDictionary()) }
6 | , new { @id = "desktopPreviousLink" })
7 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicControls/_PreviousMobileButton.cshtml:
--------------------------------------------------------------------------------
1 | @using DynamicMVC.UI.DynamicMVC.Extensions
2 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicIndexViewModel
3 |
4 | @Ajax.ActionLink("Previous", "Index", Model.TypeName, Model.RouteValueDictionaryWrapper.CloneAndAddPage(-1).GetRouteValueDictionary()
5 | , new AjaxOptions { UpdateTargetId = "ajaxtable", Url = Url.Action("_Index", Model.TypeName, Model.RouteValueDictionaryWrapper.CloneAndAddPage(-1).GetRouteValueDictionary()) }
6 | , new { @class = "btn btn-primary", @style = "margin-top: 20px;", @id = "mobilePrevious" })
7 |
8 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicDelete.cshtml:
--------------------------------------------------------------------------------
1 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicDeleteViewModel
2 |
3 |
4 |
5 |
@Model.Header
6 |
7 |
8 |
9 |
10 | @using (Html.BeginForm("Delete", Model.TypeName, new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { role = "form", @class = "form-horizontal" }))
11 | {
12 | @Html.AntiForgeryToken()
13 | @Html.Hidden("Id")
14 |
Are you sure you want to delete this?
15 |
16 |
17 |
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicDetails.cshtml:
--------------------------------------------------------------------------------
1 | @using DynamicMVC.UI.DynamicMVC.Helpers
2 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicDetailsViewModel
3 |
4 | @{
5 | ViewBag.Title = Model.Title;
6 | }
7 |
8 |
9 |
10 |
@Model.Header
11 |
12 |
13 |
14 |
15 | @using (Html.BeginForm("Details", Model.TypeName, null, FormMethod.Post, new { role = "form", @class = "form-horizontal" }))
16 | {
17 | @Html.Partial("DynamicControls/_DisplayMessage", false)
18 | @Html.AntiForgeryToken()
19 | @Html.ValidationSummary(false)
20 | @Html.Hidden("Id")
21 | foreach (var dynamicPropertyViewModel in Model.DynamicEditorViewModels)
22 | {
23 | @Html.DynamicEditor(dynamicPropertyViewModel)
24 | }
25 | @Html.Partial("Partials/_DynamicUIMethods", Model.DynamicUIMethods)
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicDisplayPartials/_DynamicDisplay.cshtml:
--------------------------------------------------------------------------------
1 | @using DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels
2 | @{
3 | var dynamicPropertyViewModel = (DynamicPropertyIndexViewModel)ViewData["DynamicPropertyViewModel"];
4 | }
5 |
6 | @Html.Display(dynamicPropertyViewModel.PropertyName)
7 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicDisplayPartials/_DynamicDisplayHyperlink.cshtml:
--------------------------------------------------------------------------------
1 | @using DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels
2 |
3 | @{
4 | var dynamicPropertyViewModel = (DynamicPropertyIndexViewModel)ViewData["DynamicPropertyViewModel"];
5 | var dynamicHyperlinkViewModel = dynamicPropertyViewModel.DynamicEditorHyperlinkViewModel;
6 | var showHyperLink = dynamicHyperlinkViewModel != null;
7 | }
8 | @if (showHyperLink)
9 | {
10 | @Html.ActionLink(dynamicHyperlinkViewModel.DisplayName, dynamicHyperlinkViewModel.ActionName, dynamicHyperlinkViewModel.ControllerName, dynamicHyperlinkViewModel.RouteValueDictionaryWrapper.GetRouteValueDictionary(), null)
11 | }
12 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicFilters/DynamicFilterAutoComplete.cshtml:
--------------------------------------------------------------------------------
1 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicFilterViewModels.DynamicFilterAutoCompleteViewModel
2 |
3 |
10 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicFilters/DynamicFilterBoolean.cshtml:
--------------------------------------------------------------------------------
1 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicFilterViewModels.DynamicFilterBooleanViewModel
2 |
3 |
10 |
11 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicFilters/DynamicFilterContainsTextBox.cshtml:
--------------------------------------------------------------------------------
1 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicFilterViewModels.DynamicFilterContainsTextBoxViewModel
2 |
3 |
10 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicFilters/DynamicFilterDateRange.cshtml:
--------------------------------------------------------------------------------
1 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicFilterViewModels.DynamicFilterDateRangeViewModel
2 |
3 |
10 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicFilters/DynamicFilterDateTime.cshtml:
--------------------------------------------------------------------------------
1 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicFilterViewModels.DynamicFilterDateTimeViewModel
2 |
3 |
10 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicFilters/DynamicFilterDropDown.cshtml:
--------------------------------------------------------------------------------
1 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicFilterViewModels.DynamicFilterDropDownViewModel
2 |
3 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/DynamicFilters/DynamicFilterExactMatchTextBox.cshtml:
--------------------------------------------------------------------------------
1 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicFilterViewModels.DynamicFilterExactMatchTextBoxViewModel
2 |
3 |
10 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/EditorTemplates/DynamicEditor.cshtml:
--------------------------------------------------------------------------------
1 | @model object
2 |
3 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/EditorTemplates/DynamicEditorBool.cshtml:
--------------------------------------------------------------------------------
1 | @model Boolean
2 |
3 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/EditorTemplates/DynamicEditorBoolNullable.cshtml:
--------------------------------------------------------------------------------
1 | @model bool?
2 |
3 | @{
4 | var selectList = new List();
5 | selectList.Add(new SelectListItem(){Selected = Model == null,Text = "Not Set",Value = ""});
6 | selectList.Add(new SelectListItem() { Selected = Model == true, Text = "True", Value = "true" });
7 | selectList.Add(new SelectListItem() { Selected = Model == false, Text = "False", Value = "false" });
8 | }
9 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/EditorTemplates/DynamicEditorDateTime.cshtml:
--------------------------------------------------------------------------------
1 | @model object
2 |
3 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/EditorTemplates/DynamicEditorDropDown.cshtml:
--------------------------------------------------------------------------------
1 | @using DynamicMVC.UI.DynamicMVC
2 | @using DynamicMVC.UI.DynamicMVC.Helpers
3 | @using DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels
4 |
5 | @model object
6 |
7 | @{
8 | var dynamicPropertyEditorViewModel = (DynamicPropertyEditorViewModel)ViewData["DynamicPropertyEditorViewModel"];
9 | var dynamicEditorDropDownViewModel = dynamicPropertyEditorViewModel.DynamicEditorDropDownViewModel;
10 | }
11 |
12 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/EditorTemplates/DynamicEditorHidden.cshtml:
--------------------------------------------------------------------------------
1 | @model object
2 |
3 | @Html.HiddenFor(m => m)
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/EditorTemplates/DynamicEditorMultiLine.cshtml:
--------------------------------------------------------------------------------
1 | @model object
2 |
3 |
9 |
10 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/EditorTemplates/DynamicEditorMultiLineReadonly.cshtml:
--------------------------------------------------------------------------------
1 | @model object
2 |
3 |
9 |
10 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/EditorTemplates/DynamicEditorPassword.cshtml:
--------------------------------------------------------------------------------
1 | @model object
2 |
3 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/EditorTemplates/DynamicEditorReadOnly.cshtml:
--------------------------------------------------------------------------------
1 | @using DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels
2 | @model object
3 | @{
4 | var dynamicPropertyViewModel = (DynamicPropertyEditorViewModel)ViewData["DynamicPropertyEditorViewModel"];
5 | }
6 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/Error.cshtml:
--------------------------------------------------------------------------------
1 | @model System.Web.Mvc.HandleErrorInfo
2 |
3 | @{
4 | ViewBag.Title = "Error";
5 | }
6 |
7 | Error.
8 | An error occurred while processing your request.
9 |
10 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/Lockout.cshtml:
--------------------------------------------------------------------------------
1 | @model System.Web.Mvc.HandleErrorInfo
2 |
3 | @{
4 | ViewBag.Title = "Locked Out";
5 | }
6 |
7 |
8 | Locked out.
9 | This account has been locked out, please try again later.
10 |
11 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/Partials/_DynamicIndexHeader.cshtml:
--------------------------------------------------------------------------------
1 | @model DynamicMVC.UI.DynamicMVC.ViewModels.DynamicIndexPageViewModel
2 |
3 | @if (Model.ShowDelete)
4 | {
5 | |
6 | }
7 | @if (Model.ShowEdit)
8 | {
9 | |
10 | }
11 | @if (Model.ShowDetails)
12 | {
13 | |
14 | }
15 |
16 | @foreach (var item in Model.DynamicTableHeaderViewModels)
17 | {
18 | @Html.Partial("DynamicControls/_DynamicTableHeader", item);
19 | }
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/Shared/Partials/_DynamicUIMethods.cshtml:
--------------------------------------------------------------------------------
1 | @model IEnumerable
2 |
3 | @foreach (var method in Model)
4 | {
5 |
6 | }
--------------------------------------------------------------------------------
/DynamicMVC.UI/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/DynamicMVC.UI/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PrecisionWebTechnologies/DynamicMVC/a7aac78639c76281e1b1ce00b79ba8f0ee16bdc7/DynamicMVC.UI/favicon.ico
--------------------------------------------------------------------------------
/DynamicMVC.UI/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PrecisionWebTechnologies/DynamicMVC/a7aac78639c76281e1b1ce00b79ba8f0ee16bdc7/DynamicMVC.UI/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/DynamicMVC.UI/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PrecisionWebTechnologies/DynamicMVC/a7aac78639c76281e1b1ce00b79ba8f0ee16bdc7/DynamicMVC.UI/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/DynamicMVC.UI/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PrecisionWebTechnologies/DynamicMVC/a7aac78639c76281e1b1ce00b79ba8f0ee16bdc7/DynamicMVC.UI/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/NuGet.Packager/NuGet.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/NuGet.Packager/NuGet.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PrecisionWebTechnologies/DynamicMVC/a7aac78639c76281e1b1ce00b79ba8f0ee16bdc7/NuGet.Packager/NuGet.exe
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/CorrectQueryStringTypesActionFilter.cs:
--------------------------------------------------------------------------------
1 | using System.Web.Mvc;
2 | using DynamicMVC.UI.Controllers;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC
5 | {
6 | public class CorrectQueryStringTypesActionFilter : ActionFilterAttribute
7 | {
8 | public override void OnActionExecuting(ActionExecutingContext filterContext)
9 | {
10 | base.OnActionExecuting(filterContext);
11 | var dynamicController = (DynamicControllerBase) filterContext.Controller;
12 | dynamicController.CorrectQueryStringTypes();
13 | }
14 | }
15 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/DynamicMVCContextOptions.cs:
--------------------------------------------------------------------------------
1 | namespace DynamicMVC.UI.DynamicMVC
2 | {
3 | public class DynamicMVCContextOptions
4 | {
5 | public DynamicMVCContextOptions()
6 | {
7 | DynamicDropDownRecordLimit = 50;
8 | }
9 |
10 | public long DynamicDropDownRecordLimit { get; set; }
11 | }
12 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicCreateViewModelBuilder.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.ViewModels;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
5 | {
6 | public interface IDynamicCreateViewModelBuilder
7 | {
8 | DynamicCreateViewModel Build(DynamicEntityMetadata dynamicEntityMetadata, dynamic createModel, string returnUrl);
9 | }
10 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicDeleteViewModelBuilder.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.ViewModels;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
5 | {
6 | public interface IDynamicDeleteViewModelBuilder
7 | {
8 | DynamicDeleteViewModel Build(DynamicEntityMetadata dynamicEntityMetadata, dynamic deleteModel, string returnUrl);
9 | }
10 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicDetailsViewModelBuilder.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.ViewModels;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
5 | {
6 | public interface IDynamicDetailsViewModelBuilder
7 | {
8 | DynamicDetailsViewModel Build(DynamicEntityMetadata dynamicEntityMetadata, dynamic detailModel);
9 | }
10 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicDisplayName.cs:
--------------------------------------------------------------------------------
1 | #pragma warning disable 1591
2 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
3 | {
4 | public interface IDynamicDisplayName
5 | {
6 | string DisplayName { get; set; }
7 | string ViewModelPropertyName { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicDisplayPartialModelBuilder.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
5 | {
6 | public interface IDynamicDisplayPartialModelBuilder
7 | {
8 | string DynamicDisplayPartialName();
9 | void Build(DynamicPropertyMetadata dynamicPropertyMetadata, DynamicPropertyIndexViewModel dynamicPropertyIndexViewModel, dynamic item);
10 | }
11 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicEditViewModelBuilder.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.ViewModels;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
5 | {
6 | public interface IDynamicEditViewModelBuilder
7 | {
8 | DynamicEditViewModel Build(DynamicEntityMetadata dynamicEntityMetadata, dynamic editModel, string returnUrl);
9 | }
10 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicEditorModelBuilder.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
5 | {
6 | public interface IDynamicEditorModelBuilder
7 | {
8 | string DynamicEditorName();
9 | void Build(DynamicPropertyMetadata dynamicPropertyMetadata, DynamicPropertyEditorViewModel dynamicPropertyViewModel, dynamic item);
10 | }
11 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicEntitySearchManager.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 |
3 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
4 | {
5 | public interface IDynamicEntitySearchManager
6 | {
7 | DynamicEntityMetadata DynamicEntityMetadata { get; }
8 | }
9 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicFilter.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Linq;
3 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
4 |
5 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
6 | {
7 | public interface IDynamicFilter
8 | {
9 | IQueryable Filter(IQueryable qry);
10 | void ViewModelCreated(DynamicPropertyMetadata dynamicPropertyMetadata, IDictionary controlParameters);
11 | string PropertyName { get; set; }
12 | RouteValueDictionaryWrapper RouteValueDictionaryWrapper { get; set; }
13 | int Order { get; set; }
14 | string QueryStringName { get; set; }
15 | string DynamicFilterViewName();
16 | bool FilterIsApplied();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicFilterFactory.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.Annotations;
2 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
5 | {
6 | public interface IDynamicFilterFactory
7 | {
8 | IDynamicFilter GetDynamicFilter(string dynamicFilterViewName, DynamicPropertyMetadata dynamicPropertyMetadata, RouteValueDictionaryWrapper routeValueDictionaryWrapper);
9 | IDynamicFilter GetDynamicFilter(DynamicFilterUIHintAttribute dynamicFilterUIHintAttribute, DynamicPropertyMetadata dynamicPropertyMetadata, RouteValueDictionaryWrapper routeValueDictionaryWrapper);
10 |
11 | }
12 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicFilterManager.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
3 | using DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels;
4 |
5 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
6 | {
7 | public interface IDynamicFilterManager
8 | {
9 | IEnumerable GetFilterPropertyViewModels(DynamicEntityMetadata dynamicEntityMetadata, RouteValueDictionaryWrapper routeValueDictionaryWrapper);
10 | string GetFilterMessage(DynamicEntityMetadata dynamicEntityMetadata, RouteValueDictionaryWrapper routeValueDictionaryWrapper);
11 | IEnumerable GetDynamicFilters(DynamicEntityMetadata dynamicEntityMetadata, RouteValueDictionaryWrapper routeValueDictionaryWrapper);
12 | }
13 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicIndexPageViewModelBuilder.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.ViewModels;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
5 | {
6 | public interface IDynamicIndexPageViewModelBuilder
7 | {
8 | DynamicIndexPageViewModel Build(DynamicEntityMetadata dynamicEntityMetadata);
9 | }
10 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicIndexViewModelBuilder.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.ViewModels;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
5 | {
6 | public interface IDynamicIndexViewModelBuilder
7 | {
8 | DynamicIndexViewModel Build(DynamicEntityMetadata dynamicEntityMetadata);
9 | }
10 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IDynamicPropertyViewModelBuilder.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
5 | {
6 | public interface IDynamicPropertyViewModelBuilder
7 | {
8 | DynamicPropertyIndexViewModel BuildDynamicPropertyIndexViewModel(DynamicPropertyMetadata dynamicPropertyMetadata);
9 | DynamicPropertyEditorViewModel BuildDynamicPropertyEditorViewModelForEdit(DynamicPropertyMetadata dynamicPropertyMetadata);
10 | DynamicPropertyEditorViewModel BuildDynamicPropertyEditorViewModelForCreate(DynamicPropertyMetadata dynamicPropertyMetadata);
11 | DynamicPropertyEditorViewModel BuildDynamicPropertyEditorViewModelForDetails(DynamicPropertyMetadata dynamicPropertyMetadata);
12 | }
13 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IRequestManager.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Web.Routing;
3 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
4 |
5 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
6 | {
7 | public interface IRequestManager
8 | {
9 | IDictionary RouteDataDictionary { get; set; }
10 | RouteValueDictionaryWrapper QueryStringDictionary { get; set; }
11 | void CorrectQuerystringTypes(DynamicEntityMetadata dynamicEntityMetadata);
12 | bool PagingParametersDoNotExist();
13 | void AddPagingParameters(string defaultOrderBy, int page, int pageSize, string keyName);
14 | RouteValueDictionaryWrapper RouteValueDictionaryWrapper();
15 | string OrderBy();
16 | string ViewProperties();
17 | }
18 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/ISelectListItemManager.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Web.Mvc;
4 |
5 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
6 | {
7 | public interface ISelectListItemManager
8 | {
9 | List GetSelectListItems(Type type, string valueFieldName, string textFieldName, object selectedItem = null, string nullText = null);
10 | List GetSelectListItemForBooleanDropDown(bool? value, string nullText);
11 | }
12 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Interfaces/IUrlManager.cs:
--------------------------------------------------------------------------------
1 | using System.Web.Mvc;
2 |
3 | namespace DynamicMVC.UI.DynamicMVC.Interfaces
4 | {
5 | public interface IUrlManager
6 | {
7 | UrlHelper Url { get; set; }
8 | }
9 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/Managers/UrlManager.cs:
--------------------------------------------------------------------------------
1 | using System.Web;
2 | using System.Web.Mvc;
3 | using System.Web.Routing;
4 | using DynamicMVC.UI.DynamicMVC.Interfaces;
5 |
6 | namespace DynamicMVC.UI.DynamicMVC.Managers
7 | {
8 | public class UrlManager : IUrlManager
9 | {
10 | public UrlManager()
11 | {
12 | Url = new UrlHelper(HttpContext.Current.Request.RequestContext, RouteTable.Routes);
13 | }
14 |
15 | public UrlHelper Url { get; set; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/ViewModelBuilders/DynamicDeleteViewModelBuilder.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.Interfaces;
3 | using DynamicMVC.UI.DynamicMVC.ViewModels;
4 |
5 | namespace DynamicMVC.UI.DynamicMVC.ViewModelBuilders
6 | {
7 | public class DynamicDeleteViewModelBuilder : IDynamicDeleteViewModelBuilder
8 | {
9 | public DynamicDeleteViewModel Build(DynamicEntityMetadata dynamicEntityMetadata, dynamic deleteModel, string returnUrl)
10 | {
11 | var dynamicDeleteViewModel = new DynamicDeleteViewModel();
12 | dynamicDeleteViewModel.TypeName = dynamicEntityMetadata.TypeName;
13 | dynamicDeleteViewModel.Header = "Delete " + dynamicEntityMetadata.TypeName;
14 | dynamicDeleteViewModel.ReturnUrl = returnUrl;
15 | return dynamicDeleteViewModel;
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/ViewModels/DynamicControls/DynamicEditorViewModel.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels;
2 |
3 | namespace DynamicMVC.UI.DynamicMVC.ViewModels.DynamicControls
4 | {
5 | public class DynamicEditorViewModel
6 | {
7 | public string ViewModelPropertyName { get; set; }
8 | public string DynamicEditorName { get; set; }
9 | public DynamicPropertyEditorViewModel DynamicPropertyEditorViewModel { get; set; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/ViewModels/DynamicControls/MessageViewModel.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.Shared.Enums;
2 |
3 | namespace DatabaseManagerMVC.UI.DynamicMVC.ViewModels.DynamicControls
4 | {
5 | public class MessageViewModel
6 | {
7 | public MessageViewModel()
8 | {
9 | MessageTypeEnum = MessageTypeEnum.Success;
10 | }
11 |
12 | public MessageViewModel(string message)
13 | {
14 | Message = message;
15 | }
16 |
17 | public MessageViewModel(MessageTypeEnum messageTypeEnum, string message): this(message)
18 | {
19 | MessageTypeEnum = messageTypeEnum;
20 | }
21 |
22 | public MessageTypeEnum MessageTypeEnum { get; set; }
23 | public string Message { get; set; }
24 | }
25 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/ViewModels/DynamicDeleteViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace DynamicMVC.UI.DynamicMVC.ViewModels
2 | {
3 | public class DynamicDeleteViewModel
4 | {
5 | public DynamicDeleteViewModel()
6 | {
7 | ButtonText = "Delete";
8 | }
9 |
10 | public string Header { get; set; }
11 | public string TypeName { get; set; }
12 | public string ButtonText { get; set; }
13 | public string ReturnUrl { get; set; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/ViewModels/DynamicEditorViewModels/DynamicEditorAutoCompleteViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace DynamicMVC.UI.DynamicMVC.ViewModels.DynamicEditorViewModels
2 | {
3 | ///
4 | ///
5 | ///
6 | public class DynamicEditorAutoCompleteViewModel
7 | {
8 | public string TypeName { get; set; }
9 | public string SelectedText { get; set; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/ViewModels/DynamicEditorViewModels/DynamicEditorDropDownViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Web.Mvc;
4 |
5 | namespace DynamicMVC.UI.DynamicMVC.ViewModels.DynamicEditorViewModels
6 | {
7 | public class DynamicEditorDropDownViewModel
8 | {
9 | public DynamicEditorDropDownViewModel()
10 | {
11 |
12 | }
13 |
14 | public DynamicEditorDropDownViewModel(Type type, string dataTextField, string dataValueField)
15 | : this()
16 | {
17 | Type = type;
18 | DataTextField = dataTextField;
19 | DataValueField = dataValueField;
20 | }
21 | public Type Type { get; set; }
22 | public string DataTextField { get; set; }
23 | public string DataValueField { get; set; }
24 | public List SelectListItems { get; set; }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/ViewModels/DynamicIndexItemViewModel.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Web.Routing;
3 | using DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels;
4 |
5 | namespace DynamicMVC.UI.DynamicMVC.ViewModels
6 | {
7 | public class DynamicIndexItemViewModel
8 | {
9 | public DynamicIndexItemViewModel()
10 | {
11 | DynamicPropertyIndexViewModels = new List();
12 | }
13 |
14 | public bool ShowDelete { get; set; }
15 | public bool ShowEdit { get; set; }
16 | public bool ShowDetails { get; set; }
17 | public dynamic Item { get; set; }
18 | public string TypeName { get; set; }
19 | public RouteValueDictionaryWrapper RouteValueDictionaryWrapper { get; set; }
20 |
21 | public List DynamicPropertyIndexViewModels { get; set; }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/ViewModels/DynamicIndexViewModel.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.UI.DynamicMVC.ViewModels.Partials;
2 |
3 | namespace DynamicMVC.UI.DynamicMVC.ViewModels
4 | {
5 | public class DynamicIndexViewModel
6 | {
7 | public DynamicIndexViewModel()
8 | {
9 | Title = "Index";
10 | }
11 |
12 | public string Title { get; set; }
13 | public string Header { get; set; }
14 | public string TypeName { get; set; }
15 | public string FilterMessage { get; set; }
16 | public RouteValueDictionaryWrapper RouteValueDictionaryWrapper { get; set; }
17 |
18 | public DynamicIndexFiltersViewModel DynamicIndexFiltersViewModel { get; set; }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/ViewModels/DynamicPropertyViewModels/DynamicFilterViewModel.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.Interfaces;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels
5 | {
6 | public class DynamicFilterViewModel : DynamicPropertyViewModel
7 | {
8 |
9 | public DynamicFilterViewModel(DynamicPropertyMetadata dynamicPropertyMetadata) : base(dynamicPropertyMetadata)
10 | {
11 | }
12 |
13 | public string DynamicFilterViewName { get; set; }
14 | public IDynamicFilter FilterModel { get; set; }
15 | }
16 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/ViewModels/DynamicPropertyViewModels/DynamicPropertyEditorViewModel.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.ViewModels.DynamicEditorViewModels;
3 |
4 | namespace DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels
5 | {
6 | public class DynamicPropertyEditorViewModel : DynamicPropertyViewModel
7 | {
8 | public DynamicPropertyEditorViewModel(DynamicPropertyMetadata dynamicPropertyMetadata) : base(dynamicPropertyMetadata)
9 | {
10 |
11 | }
12 |
13 | public string DynamicEditorName { get; set; }
14 | public DynamicEditorHyperlinkViewModel DynamicEditorHyperlinkViewModel { get; set; }
15 | public DynamicEditorDropDownViewModel DynamicEditorDropDownViewModel { get; set; }
16 | public DynamicEditorAutoCompleteViewModel DynamicEditorAutoCompleteViewModel { get; set; }
17 | }
18 | }
--------------------------------------------------------------------------------
/NuGet.Packager/content/DynamicMVC/ViewModels/DynamicPropertyViewModels/DynamicPropertyViewModel.cs:
--------------------------------------------------------------------------------
1 | using DynamicMVC.DynamicEntityMetadataLibrary.Models;
2 | using DynamicMVC.UI.DynamicMVC.Interfaces;
3 |
4 | #pragma warning disable 1591
5 |
6 | namespace DynamicMVC.UI.DynamicMVC.ViewModels.DynamicPropertyViewModels
7 | {
8 | public class DynamicPropertyViewModel : IDynamicDisplayName
9 | {
10 | public DynamicPropertyViewModel(DynamicPropertyMetadata dynamicPropertyMetadata)
11 | {
12 | ViewModelPropertyName = dynamicPropertyMetadata.PropertyName;
13 | PropertyName = dynamicPropertyMetadata.PropertyName;
14 | DisplayName = dynamicPropertyMetadata.DisplayName;
15 | }
16 |
17 | public string ViewModelPropertyName { get; set; }
18 | public string PropertyName { get; set; }
19 | public string DisplayName { get; set; }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/NuGet.Packager/lib/DynamicMVC.Data.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/PrecisionWebTechnologies/DynamicMVC/a7aac78639c76281e1b1ce00b79ba8f0ee16bdc7/NuGet.Packager/lib/DynamicMVC.Data.dll
--------------------------------------------------------------------------------
/NuGet.Packager/tools/init.ps1:
--------------------------------------------------------------------------------
1 | # Runs the first time a package is installed in a solution, and every time the solution is opened.
2 |
3 | param($installPath, $toolsPath, $package, $project)
4 |
5 | # $installPath is the path to the folder where the package is installed.
6 | # $toolsPath is the path to the tools directory in the folder where the package is installed.
7 | # $package is a reference to the package object.
8 | # $project is null in init.ps1
9 |
--------------------------------------------------------------------------------
/NuGet.Packager/tools/install.ps1:
--------------------------------------------------------------------------------
1 | # Runs every time a package is installed in a project
2 |
3 | param($installPath, $toolsPath, $package, $project)
4 |
5 | # $installPath is the path to the folder where the package is installed.
6 | # $toolsPath is the path to the tools directory in the folder where the package is installed.
7 | # $package is a reference to the package object.
8 | # $project is a reference to the project the package was installed to.
9 |
--------------------------------------------------------------------------------
/NuGet.Packager/tools/uninstall.ps1:
--------------------------------------------------------------------------------
1 | # Runs every time a package is uninstalled
2 |
3 | param($installPath, $toolsPath, $package, $project)
4 |
5 | # $installPath is the path to the folder where the package is installed.
6 | # $toolsPath is the path to the tools directory in the folder where the package is installed.
7 | # $package is a reference to the package object.
8 | # $project is a reference to the project the package was installed to.
9 |
--------------------------------------------------------------------------------
/ReflectionLibrary/Interfaces/IAttributeMergeManager.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace ReflectionLibrary.Interfaces
8 | {
9 | public interface IAttributeMergeManager
10 | {
11 | void MergeAttributes(IReflectedClass source, IReflectedClass target);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ReflectionLibrary/Interfaces/IReflectedClassBuilder.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace ReflectionLibrary.Interfaces
8 | {
9 | public interface IReflectedClassBuilder
10 | {
11 | IReflectedClass BuildReflectedClass(Type type);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ReflectionLibrary/Interfaces/IReflectedClassOperations.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ReflectionLibrary.Interfaces
4 | {
5 | ///
6 | /// Provides access to methods that require the underlying reflected class to be defined.
7 | ///
8 | public interface IReflectedClassOperations
9 | {
10 | ///
11 | /// Returns origonal type reflected.
12 | ///
13 | Func GetReflectedType { get; set; }
14 |
15 | ///
16 | /// Creates a new object
17 | ///
18 | Func