public void Support_nullable_primary_keys_custom()
        {
            // arrange
            Action <IGeneratorInstance> sequenceGenerated = g => g.Sequence("theSequence");
            var generator = GeneratorMock;

            // act
            _persistenceModel.SupportNullablePrimaryKeys(sequenceGenerated);
            ActualIdConventions
            .ForEach(idconv => idconv.Apply(_mockIdInstance));

            // assert
            generator.AssertWasCalled(g => g.Sequence("theSequence"));
        }
예제 #2
0
 public static AutoPersistenceModel SupportNullablePrimaryKeysNativeGenerated(this AutoPersistenceModel model)
 {
     return(model.SupportNullablePrimaryKeys(g => g.Native()));
 }