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

            var hasOne = new HasOne(repository, callInfo.Name);

            hasOne.ForeignKey = "Id";

            InitAssociation(hasOne, callInfo.Instance);
        }
示例#2
0
文件: Association.cs 项目: eugman/Oak
        void AddConventionForHasOne(dynamic callInfo)
        {
            var repository = RepositoryFor(Pluralize(callInfo.Name), callInfo.Instance.__ConnectionString__());

            var hasOne = new HasOne(repository, callInfo.Name);

            hasOne.ForeignKey = "Id";

            InitAssociation(hasOne, callInfo.Instance);
        }