Beispiel #1
0
        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;
        }
Beispiel #2
0
 public PostingRepository(long userid)
 {
     this.UserId   = userid;
     this.instance = new PostingDataAccess();
 }