Skip to content

Suppress Object Level Business rules (not associated with properties) #3671

Discussion options

You must be logged in to vote

Here's a basic test on which we can build a discussion. I'm not sure where you are suppressing rules?

If the CheckRules method is not calling in the create operation, no rules run. if it is called in the create operation then the type and property rules run.

using Csla;
using Csla.Configuration;
using Csla.Rules;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
services.AddCsla();
var provider = services.BuildServiceProvider();
var portal = provider.GetRequiredService<IDataPortal<PersonEdit>>();
var obj = portal.Create();


[Serializable]
public class PersonEdit : BusinessBase<PersonEdit>
{
    public static readonly PropertyInfo<string> NameProperty =

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@Chicagoan2016
Comment options

@Chicagoan2016
Comment options

@ossendorf-at-hoelscher
Comment options

@Chicagoan2016
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Chicagoan2016
Comment options

You must be logged in to vote
1 reply
@rockfordlhotka
Comment options

Comment options

You must be logged in to vote
5 replies
@rockfordlhotka
Comment options

@Chicagoan2016
Comment options

@rockfordlhotka
Comment options

@Chicagoan2016
Comment options

@Chicagoan2016
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants