public static IEntityCollection <T> BulkLoad <T>(this IEntityCollection <T> list, IEnumerable <T> data, bool clear) where T : class { list.BeginInit(); if (clear) { list.Clear(); } list.AddRange(data); list.EndInit(true); return(list); }
public static IEntityCollection <T> BulkLoad <T>(this IEntityCollection <T> list, IEnumerable <T> data, bool clear) where T : class { list.BeginInit(); if (clear) { list.Clear(); } list.AddRange(data); list.EndInit(true); return(list); }