Exemplo n.º 1
0
        internal ReferenceBuilder Reference(string foreignKeyPropertyName, string primaryKeyPropertyName)
        {
            foreignKeyPropertyName.ThrowIfNullOrWhitespace(nameof(foreignKeyPropertyName));
            primaryKeyPropertyName.ThrowIfNullOrWhitespace(nameof(primaryKeyPropertyName));

            var referenceBuilder = new ReferenceBuilder(this, primaryKeyPropertyName, foreignKeyPropertyName);

            _referenceBuilders.Add(referenceBuilder);
            return(referenceBuilder);
        }
Exemplo n.º 2
0
 internal DeleteBehaviorBuilder(ReferenceBuilder referenceBuilder)
 {
     _referenceBuilder = referenceBuilder;
 }