Exemple #1
0
        public BaseProtoBufProxy(Type serviceType)
        {
            __ServiceName = serviceType.FullName;

            __Method_GetListByPage = GrpcServiceExtensions.BuildMethod <PP, PageResult <PD> >(__ServiceName, "GetListByPage");
            __Method_Add           = GrpcServiceExtensions.BuildMethod <M, AjaxResult>(__ServiceName, "Add");
            __Method_AddRange      = GrpcServiceExtensions.BuildMethod <List <M>, AjaxResult>(__ServiceName, "AddRange");

            __Method_Modify           = GrpcServiceExtensions.BuildMethod <M, AjaxResult>(__ServiceName, "Modify");
            __Method_Remove           = GrpcServiceExtensions.BuildMethod <RemoveModel, AjaxResult>(__ServiceName, "Remove");
            __Method_RemoveClear      = GrpcServiceExtensions.BuildMethod <IdModel, AjaxResult>(__ServiceName, "RemoveClear");
            __Method_RemoveClearRange = GrpcServiceExtensions.BuildMethod <List <IdModel>, AjaxResult>(__ServiceName, "RemoveClearRange");

            __Method_FindById = GrpcServiceExtensions.BuildMethod <IdModel, M>(__ServiceName, "FindById");

            __Method_FindAll = GrpcServiceExtensions.BuildMethod <NullableParams, List <M> >(__ServiceName, "FindAll");

            __Method_ValidAdd_Modify = GrpcServiceExtensions.BuildMethod <M, string>(__ServiceName, "ValidAdd_Modify");
            __Method_ValidDelete     = GrpcServiceExtensions.BuildMethod <RemoveModel, string>(__ServiceName, "ValidDelete");

            __Method_ModifyDic      = GrpcServiceExtensions.BuildMethod <Dictionary <string, string>, AjaxResult>(__ServiceName, "ModifyDic");
            __Method_ModifyRangeDic = GrpcServiceExtensions.BuildMethod <string, AjaxResult>(__ServiceName, "ModifyRangeDic");

            __Method_FindNameListByIdList = GrpcServiceExtensions.BuildMethod <NameByIdParams, List <NameByIdDto> >(__ServiceName, "FindNameListByIdList");

            __Method_FindIdListByNameContains = GrpcServiceExtensions.BuildMethod <IdByNameContainsParams, List <NameByIdDto> >(__ServiceName, "FindIdListByNameContains");

            __Method_FindAllByEntity = GrpcServiceExtensions.BuildMethod <Dictionary <string, string>, List <M> >(__ServiceName, "__Method_FindAllByEntity");
            __Method_FindByEntity    = GrpcServiceExtensions.BuildMethod <Dictionary <string, string>, M>(__ServiceName, "__Method_FindByEntity");
        }
Exemple #2
0
 public BaseProtoExtendCQueryProxy(Type serviceType) : base(serviceType)
 {
     __Method_GetCQueryListByPage = GrpcServiceExtensions.BuildMethod <QPP, PageResult <QPD> >(__ServiceName, "GetCQueryListByPage");
 }