Ejemplo n.º 1
0
			V_2 = Expression.Parameter(Type.GetTypeFromHandle(// 
			// Current member / type: System.Collections.Generic.List`1<Mix.Cms.Lib.ViewModels.MixPages.ReadListItemViewModel> Mix.Cms.Lib.MixCmsHelper::GetCategory(Microsoft.AspNetCore.Mvc.IUrlHelper,System.String,Mix.Cms.Lib.MixEnums/MixPageType,System.String)
			// Exception in: System.Collections.Generic.List<Mix.Cms.Lib.ViewModels.MixPages.ReadListItemViewModel> GetCategory(Microsoft.AspNetCore.Mvc.IUrlHelper,System.String,Mix.Cms.Lib.MixEnums/MixPageType,System.String)
			// Specified method is not supported.
			// 
			// mailto: [email protected]


		public static async Task<RepositoryResponse<PaginationModel<TView>>> GetListPostByAddictionalField<TView>(string fieldName, object fieldValue, string culture, MixEnums.MixDataType dataType, MixEnums.CompareType filterType = 1, string orderByPropertyName = null, MixHeartEnums.DisplayDirection direction = 0, int? pageSize = null, int? pageIndex = null, MixCmsContext _context = null, IDbContextTransaction _transaction = null)
		where TView : ViewModelBase<MixCmsContext, MixPost, TView>
		{
			V_0.fieldName = fieldName;
			V_0.fieldValue = fieldValue;
			V_0.culture = culture;
			V_0.dataType = dataType;
			V_0.filterType = filterType;
			V_0.orderByPropertyName = orderByPropertyName;
			V_0.direction = direction;
			V_0.pageSize = pageSize;
			V_0.pageIndex = pageIndex;
			V_0._context = _context;
			V_0._transaction = _transaction;
			V_0.u003cu003et__builder = AsyncTaskMethodBuilder<RepositoryResponse<PaginationModel<TView>>>.Create();
			V_0.u003cu003e1__state = -1;
			V_0.u003cu003et__builder.Start<MixCmsHelper.u003cGetListPostByAddictionalFieldu003ed__15<TView>>(ref V_0);
			return V_0.u003cu003et__builder.get_Task();
		}
Ejemplo n.º 2
0
		public static RepositoryResponse<PaginationModel<ReadViewModel>> GetModelListByModule(int ModuleId, string specificulture, string orderByPropertyName, MixHeartEnums.DisplayDirection direction, int? pageSize = 1, int? pageIndex = 0, MixCmsContext _context = null, IDbContextTransaction _transaction = null)
		{
			V_0 = new ReadViewModel.u003cu003ec__DisplayClass125_0();
			V_0.ModuleId = ModuleId;
			V_0.specificulture = specificulture;
			stackVariable5 = _context;
			if (stackVariable5 == null)
			{
				dummyVar0 = stackVariable5;
				stackVariable5 = new MixCmsContext();
			}
			V_1 = stackVariable5;
			stackVariable6 = _transaction;
			if (stackVariable6 == null)
			{
				dummyVar1 = stackVariable6;
				stackVariable6 = V_1.get_Database().BeginTransaction();
			}
			V_2 = stackVariable6;
			try
			{
				try
				{
					stackVariable8 = V_1.get_MixModulePost();
					V_5 = Expression.Parameter(System.Type.GetTypeFromHandle(// 
					// Current member / type: Mix.Domain.Core.ViewModels.RepositoryResponse`1<Mix.Domain.Core.ViewModels.PaginationModel`1<Mix.Cms.Lib.ViewModels.MixPosts.ReadViewModel>> Mix.Cms.Lib.ViewModels.MixPosts.ReadViewModel::GetModelListByModule(System.Int32,System.String,System.String,Mix.Heart.Enums.MixHeartEnums/DisplayDirection,System.Nullable`1<System.Int32>,System.Nullable`1<System.Int32>,Mix.Cms.Lib.Models.Cms.MixCmsContext,Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction)
					// Exception in: Mix.Domain.Core.ViewModels.RepositoryResponse<Mix.Domain.Core.ViewModels.PaginationModel<Mix.Cms.Lib.ViewModels.MixPosts.ReadViewModel>> GetModelListByModule(System.Int32,System.String,System.String,Mix.Heart.Enums.MixHeartEnums/DisplayDirection,System.Nullable<System.Int32>,System.Nullable<System.Int32>,Mix.Cms.Lib.Models.Cms.MixCmsContext,Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction)
					// Specified method is not supported.
					// 
					// mailto: [email protected]


		public string Property(string name)
		{
			V_0 = new ReadViewModel.u003cu003ec__DisplayClass122_0();
			V_0.name = name;
			stackVariable8 = this.get_Properties().FirstOrDefault<ExtraProperty>(new Func<ExtraProperty, bool>(V_0.u003cPropertyu003eb__0));
			if (stackVariable8 != null)
			{
				return stackVariable8.get_Value();
			}
			dummyVar0 = stackVariable8;
			return null;
		}
	}
Ejemplo n.º 3
0
		public static RepositoryResponse<PaginationModel<ReadViewModel>> GetModelListByCategory(int pageId, string specificulture, string orderByPropertyName, MixHeartEnums.DisplayDirection direction, int? pageSize = 1, int? pageIndex = 0, MixCmsContext _context = null, IDbContextTransaction _transaction = null)
		{
			V_0 = new ReadViewModel.u003cu003ec__DisplayClass124_0();
			V_0.pageId = pageId;
			V_0.specificulture = specificulture;
			stackVariable5 = _context;
			if (stackVariable5 == null)
			{
				dummyVar0 = stackVariable5;
				stackVariable5 = new MixCmsContext();
			}
			V_1 = stackVariable5;
			stackVariable6 = _transaction;
			if (stackVariable6 == null)
			{
				dummyVar1 = stackVariable6;
				stackVariable6 = V_1.get_Database().BeginTransaction();
			}
			V_2 = stackVariable6;
			try
			{
				try
				{
					stackVariable8 = V_1.get_MixPagePost();
					V_5 = Expression.Parameter(System.Type.GetTypeFromHandle(// 
					// Current member / type: Mix.Domain.Core.ViewModels.RepositoryResponse`1<Mix.Domain.Core.ViewModels.PaginationModel`1<Mix.Cms.Lib.ViewModels.MixPosts.ReadViewModel>> Mix.Cms.Lib.ViewModels.MixPosts.ReadViewModel::GetModelListByCategory(System.Int32,System.String,System.String,Mix.Heart.Enums.MixHeartEnums/DisplayDirection,System.Nullable`1<System.Int32>,System.Nullable`1<System.Int32>,Mix.Cms.Lib.Models.Cms.MixCmsContext,Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction)
					// Exception in: Mix.Domain.Core.ViewModels.RepositoryResponse<Mix.Domain.Core.ViewModels.PaginationModel<Mix.Cms.Lib.ViewModels.MixPosts.ReadViewModel>> GetModelListByCategory(System.Int32,System.String,System.String,Mix.Heart.Enums.MixHeartEnums/DisplayDirection,System.Nullable<System.Int32>,System.Nullable<System.Int32>,Mix.Cms.Lib.Models.Cms.MixCmsContext,Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction)
					// Specified method is not supported.
					// 
					// mailto: [email protected]


		public static async Task<RepositoryResponse<PaginationModel<ReadViewModel>>> GetModelListByCategoryAsync(int pageId, string specificulture, string orderByPropertyName, MixHeartEnums.DisplayDirection direction, int? pageSize = 1, int? pageIndex = 0, int? skip = null, int? top = null, MixCmsContext _context = null, IDbContextTransaction _transaction = null)
Ejemplo n.º 4
0
					V_5 = Expression.Parameter(System.Type.GetTypeFromHandle(// 
					// Current member / type: Mix.Domain.Core.ViewModels.RepositoryResponse`1<Mix.Domain.Core.ViewModels.PaginationModel`1<Mix.Cms.Lib.ViewModels.MixPosts.ReadViewModel>> Mix.Cms.Lib.ViewModels.MixPosts.ReadViewModel::GetModelListByCategory(System.Int32,System.String,System.String,Mix.Heart.Enums.MixHeartEnums/DisplayDirection,System.Nullable`1<System.Int32>,System.Nullable`1<System.Int32>,Mix.Cms.Lib.Models.Cms.MixCmsContext,Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction)
					// Exception in: Mix.Domain.Core.ViewModels.RepositoryResponse<Mix.Domain.Core.ViewModels.PaginationModel<Mix.Cms.Lib.ViewModels.MixPosts.ReadViewModel>> GetModelListByCategory(System.Int32,System.String,System.String,Mix.Heart.Enums.MixHeartEnums/DisplayDirection,System.Nullable<System.Int32>,System.Nullable<System.Int32>,Mix.Cms.Lib.Models.Cms.MixCmsContext,Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction)
					// Specified method is not supported.
					// 
					// mailto: [email protected]


		public static async Task<RepositoryResponse<PaginationModel<ReadViewModel>>> GetModelListByCategoryAsync(int pageId, string specificulture, string orderByPropertyName, MixHeartEnums.DisplayDirection direction, int? pageSize = 1, int? pageIndex = 0, int? skip = null, int? top = null, MixCmsContext _context = null, IDbContextTransaction _transaction = null)
		{
			V_0.pageId = pageId;
			V_0.specificulture = specificulture;
			V_0.orderByPropertyName = orderByPropertyName;
			V_0.direction = direction;
			V_0.pageSize = pageSize;
			V_0.pageIndex = pageIndex;
			V_0.skip = skip;
			V_0.top = top;
			V_0._context = _context;
			V_0._transaction = _transaction;
			V_0.u003cu003et__builder = AsyncTaskMethodBuilder<RepositoryResponse<PaginationModel<ReadViewModel>>>.Create();
			V_0.u003cu003e1__state = -1;
			V_0.u003cu003et__builder.Start<ReadViewModel.u003cGetModelListByCategoryAsyncu003ed__123>(ref V_0);
			return V_0.u003cu003et__builder.get_Task();
		}
Ejemplo n.º 5
0
        public static async Task <RepositoryResponse <PaginationModel <TView> > > GetModelistByMeta <TView>(string metaName, string metaValue, string culture, string orderByPropertyName, MixHeartEnums.DisplayDirection direction, int?pageSize, int?pageIndex, MixCmsContext _context = null, IDbContextTransaction _transaction = null)
            where TView : ViewModelBase <MixCmsContext, MixPost, TView>
        {
            V_0.metaName             = metaName;
            V_0.metaValue            = metaValue;
            V_0.culture              = culture;
            V_0.orderByPropertyName  = orderByPropertyName;
            V_0.direction            = direction;
            V_0.pageSize             = pageSize;
            V_0.pageIndex            = pageIndex;
            V_0._context             = _context;
            V_0._transaction         = _transaction;
            V_0.u003cu003et__builder = AsyncTaskMethodBuilder <RepositoryResponse <PaginationModel <TView> > > .Create();

            V_0.u003cu003e1__state = -1;
            V_0.u003cu003et__builder.Start <Helper.u003cGetModelistByMetau003ed__0 <TView> >(ref V_0);
            return(V_0.u003cu003et__builder.get_Task());
        }