コード例 #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);
        }
コード例 #2
0
 internal DeleteBehaviorBuilder(ReferenceBuilder referenceBuilder)
 {
     _referenceBuilder = referenceBuilder;
 }