Beispiel #1
0
        void AddConventionForBelongsTo(dynamic callInfo)
        {
            var repository = RepositoryFor(Pluralize(callInfo.Name), callInfo.Instance.__ConnectionString__());

            var belongsTo = new BelongsTo(repository, callInfo.Name);

            belongsTo.PropertyContainingIdValue = ChildKey(callInfo);

            InitAssociation(belongsTo, callInfo.Instance);
        }
Beispiel #2
0
        void AddConventionForBelongsTo(dynamic callInfo)
        {
            var repository = RepositoryFor(Pluralize(callInfo.Name), callInfo.Instance.__ConnectionString__());

            var belongsTo = new BelongsTo(repository, callInfo.Name);

            belongsTo.PropertyContainingIdValue = ChildKey(callInfo);

            InitAssociation(belongsTo, callInfo.Instance);
        }