Skip to content

Add support for DateOnly and TimeOnly #272

@REDECODE

Description

@REDECODE

Hello, I suggest to add DateOnly (and probably TimeOnly too) support cause they map column type date and time on SqlServer database, but currently they are not recognized by SimpleCRUD and ignored unless you maked on every property of every class using the [Editable(true)] attribute, but I think they are a simple type like DateTime and TimeSpan.

So I suggest to add DateOnly and TimeOnly on the method IsSimpleType so it can return true for this type.

PS: I suggest to think on a method or property in SimpleCRUD class in wich you can add other complex type globally, so you can avoid the [Editable(true)] attribute for that Type (for example, this approach would have allowed you to add support for DateOnly and TimeOnly without needing to modify the source code:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions