@@ -551,8 +551,6 @@ void BuildRemoveByIdAdvancedParamMethod(MethodInfo method, ParameterInfo[] param
551
551
var primaryKeyFields = FilterOutInKeyValues ( ClientRelationVersionInfo . PrimaryKeyFields . Span ) ;
552
552
var field = primaryKeyFields [ prefixParamCount ] ;
553
553
554
- if ( parameters . Length != primaryKeyFields . Length )
555
- ForbidExcludePropositionInDebug ( reqMethod . Generator , advEnumParamOrder , advEnumParam ) ;
556
554
ValidateAdvancedEnumParameter ( field , advEnumParamType , method . Name ) ;
557
555
558
556
reqMethod . Generator . Ldarg ( 0 ) ; //manipulator for call RemoveByIdAdvancedParam
@@ -667,8 +665,6 @@ void BuildListByIdMethod(MethodInfo method, IILMethod reqMethod)
667
665
var primaryKeyFields = FilterOutInKeyValues ( ClientRelationVersionInfo . PrimaryKeyFields . Span ) ;
668
666
var field = primaryKeyFields [ prefixParamCount ] ;
669
667
670
- if ( parameters . Length != primaryKeyFields . Length )
671
- ForbidExcludePropositionInDebug ( reqMethod . Generator , advEnumParamOrder , advEnumParam ) ;
672
668
ValidateAdvancedEnumParameter ( field , advEnumParamType , method . Name ) ;
673
669
674
670
reqMethod . Generator . Ldarg ( 0 ) . Castclass ( typeof ( IRelationDbManipulator ) ) ;
@@ -845,8 +841,6 @@ void PrepareAnyCountByIdWithAep(MethodInfo method, IILMethod reqMethod, Paramete
845
841
var primaryKeyFields = FilterOutInKeyValues ( ClientRelationVersionInfo . PrimaryKeyFields . Span ) ;
846
842
var field = primaryKeyFields [ prefixParamCount ] ;
847
843
848
- if ( parameters . Length != primaryKeyFields . Length )
849
- ForbidExcludePropositionInDebug ( reqMethod . Generator , advEnumParamOrder , advEnumParam ) ;
850
844
ValidateAdvancedEnumParameter ( field , advEnumParamType , method . Name ) ;
851
845
852
846
WritePrimaryKeyPrefixFinishedByAdvancedEnumeratorWithoutOrder ( method , parameters , reqMethod ,
@@ -871,8 +865,6 @@ void BuildListByMethod(MethodInfo method, IILMethod reqMethod)
871
865
var skFields = ClientRelationVersionInfo . GetSecondaryKeyFields ( secondaryKeyIndex ) ;
872
866
var field = skFields [ prefixParamCount ] ;
873
867
874
- if ( parameters . Length != skFields . Length )
875
- ForbidExcludePropositionInDebug ( reqMethod . Generator , advEnumParamOrder , advEnumParam ) ;
876
868
ValidateAdvancedEnumParameter ( field , advEnumParamType , method . Name ) ;
877
869
878
870
reqMethod . Generator
@@ -966,22 +958,6 @@ void BuildListByMethod(MethodInfo method, IILMethod reqMethod)
966
958
}
967
959
}
968
960
969
- [ Conditional ( "DEBUG" ) ]
970
- void ForbidExcludePropositionInDebug ( IILGen ilGenerator , ushort advEnumParamOrder , Type advEnumParamType )
971
- {
972
- var propositionCheckFinished = ilGenerator . DefineLabel ( ) ;
973
- ilGenerator
974
- . LdcI4 ( ( int ) KeyProposition . Excluded )
975
- . Ldarg ( advEnumParamOrder )
976
- . Ldfld ( advEnumParamType . GetField ( nameof ( AdvancedEnumeratorParam < int > . StartProposition ) ) ! )
977
- . Ceq ( )
978
- . Brfalse ( propositionCheckFinished )
979
- . Ldstr ( "Not supported Excluded proposition when listing by partial key." )
980
- . Newobj ( ( ) => new InvalidOperationException ( null ) )
981
- . Throw ( )
982
- . Mark ( propositionCheckFinished ) ;
983
- }
984
-
985
961
void BuildCountByMethod ( MethodInfo method , IILMethod reqMethod )
986
962
{
987
963
var parameters = method . GetParameters ( ) ;
@@ -1061,8 +1037,6 @@ void PrepareAnyCountByWithAep(MethodInfo method, IILMethod reqMethod, ParameterI
1061
1037
var skFields = ClientRelationVersionInfo . GetSecondaryKeyFields ( secondaryKeyIndex ) ;
1062
1038
var field = skFields [ prefixParamCount ] ;
1063
1039
1064
- if ( parameters . Length != skFields . Length )
1065
- ForbidExcludePropositionInDebug ( reqMethod . Generator , advEnumParamOrder , advEnumParam ) ;
1066
1040
ValidateAdvancedEnumParameter ( field , advEnumParamType , method . Name ) ;
1067
1041
1068
1042
var ( pushWriter , ctxLocFactory ) = WriterPushers ( reqMethod . Generator ) ;
0 commit comments