Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="sprocName"></param>
 /// <param name="parameters"></param>
 /// <returns></returns>
 public IEnumerable <T> ExecuteSproc <T>(string sprocName, params DbParameter[] parameters)
 {
     this.efr = new EFResults(this.SetUpCommandObjectForSproc(sprocName, parameters), true);
     return(efr.GetNextResultFromDataReader <T>((IObjectContextAdapter)this));
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 public new void Dispose()
 {
     this.Database.Connection.Close();
     efr = null;
     base.Dispose();
 }