internal static void Fill(SqlDataReader Reader, EntitySet <TEntity> EntitySet) { CommandToken <TEntityContext, TEntity, TEntityCallBack> token = new CommandToken <TEntityContext, TEntity, TEntityCallBack>(Reader.GetSchemaTable()); if (!fill_setters.TryGetValue(token, out Action <SqlDataReader, EntitySet <TEntity> > fill)) { fill_setters.Add(token, fill = token.Generate_Fill_Setter()); } while (Reader.Read()) { fill(Reader, EntitySet); } }