public Repository(FloodManagementSystemContext context) { this.context = context; entities = context.Set<T>(); }
public void InitContext(FloodManagementSystemContext context) { this.context = context; this.entities = context.Set<T>(); }