/// <summary> /// Copies member variables /// </summary> /// <param name="old"></param> private void CopyMembers(TableValuedFunction old) { this.ObjectType = old.ObjectType; this.columns = new LazyProperty <ConcurrentDictionary <string, Column> >(LoadColumns); this.parameters = new LazyProperty <ConcurrentDictionary <string, Parameter> >(LoadParameters); }
/// <summary> /// Copy constructor /// </summary> /// <param name="old"></param> public TableValuedFunction(TableValuedFunction old) : base(old) { CopyMembers(old); }
/// <summary> /// Copies member variables /// </summary> /// <param name="old"></param> private void CopyMembers(TableValuedFunction old) { this.ObjectType = old.ObjectType; this.isColumnsLoaded = false; this.columns = null; this.isParametersLoaded = false; this.parameters = null; }
/// <summary> /// Copies member variables /// </summary> /// <param name="old"></param> private void CopyMembers(TableValuedFunction old) { this.ObjectType = old.ObjectType; this.columns = new LazyProperty<ConcurrentDictionary<string, Column>>(LoadColumns); this.parameters = new LazyProperty<ConcurrentDictionary<string, Parameter>>(LoadParameters); }