protected virtual void Dispose(bool disposing) { if (this.disposed) { return; } if (disposing) { if (this.instance != null) { this.instance.Dispose(); this.instance = null; } ////Clean all memeber and release resource. } // Free any unmanaged objects here. disposed = true; }
public PostingRepository(long userid) { this.UserId = userid; this.instance = new PostingDataAccess(); }