// Cannot be subclassed outside this assembly internal NrdoReference(NrdoTable table, MethodInfo method, NrdoRefAttribute rattr) : base(table, method, rattr) { this.index = rattr.Index; this.isFkey = rattr.Fkey; this.fkeyName = rattr.FkeyName; this.isCascadingFkey = rattr.Cascade; MethodInfo meth = targetTable.Type.GetMethod(rattr.Get, rattr.GetParams); foreach (NrdoGet get in targetTable.Gets) { if (get.Method.Equals(meth)) { associatedGet = get; } } if (associatedGet == null) { throw new ArgumentException("Associated get for reference not found"); } }
internal NrdoMultiReference(NrdoTable table, MethodInfo method, NrdoRefAttribute rattr) : base(table, method, rattr) { }