public override bool ConflictsWith(UserConfiguredItemBase otherConfiguredItem) { if (!base.ConflictsWith(otherConfiguredItem)) { return(false); } return(!IsClone || _factoryInfo.IsSameAs(((ConfiguredObjectFactory)otherConfiguredItem)._factoryInfo)); }
public override bool ConflictsWith(UserConfiguredItemBase otherConfiguredItem) { if (!base.ConflictsWith(otherConfiguredItem)) { return(false); } var otherDataSource = otherConfiguredItem as ConfiguredDataSourceFactory; if (otherDataSource == null) { return(true); } if (SourceAndTargetTypesAreTheSame(otherDataSource)) { return(true); } return(_dataSourceLambda.IsSameAs(otherDataSource._dataSourceLambda)); }
private bool HasSameDataSourceLambdaAs(ConfiguredDataSourceFactory otherDataSource) => _dataSourceLambda.IsSameAs(otherDataSource?._dataSourceLambda);