Проекция функций БД
Редактировал(а) Alexandr Fokin 2024/02/10 14:11
Хранимые функции и процедуры, IQueryable | |
RelationalModelBuilderExtensions.HasDbFunction Метод Хранимые функции | |
static class PostgresCustomFunctions { public static bool pg_try_advisory_xact_lock(long key) { throw new Exception("Postgres function"); } } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder .HasDbFunction(() => PostgresCustomFunctions.pg_try_advisory_xact_lock(default)); } |