Skip to content

Guideline to reuse SqlDataRecord  #1805

Description

@xaviergxf

I'm using a lot of SqlDataRecord for mass insert/update/delete on multiple tables and when reading the documentation about SqlDataRecord i don't see any guideline on how to reuse these SqlDataRecord objects. The only thing mentioned on the docs is:

you should re-use existing SqlDataRecord objects instead of creating new ones every time

I have looked into ObjectPool class to reuse these objects, but in my use case it won't work because ObjectPool when used in DI is singleton and i would need an ObjectPool per "table" (like the HttpClientFactory named client pattern)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions