public SqlExpression Translate(SqlExpression instance, MemberInfo member, Type returnType, IDiagnosticsLogger <DbLoggerCategory.Query> logger)
 {
     if (member.DeclaringType == typeof(DateTime) && member.Name == nameof(DateTime.Now))
     {
         return(_fbSqlExpressionFactory.ApplyDefaultTypeMapping(_fbSqlExpressionFactory.NiladicFunction("LOCALTIMESTAMP", false, typeof(DateTime))));
     }
     if (member.DeclaringType == typeof(DateTime) && member.Name == nameof(DateTime.Today))
     {
         return(_fbSqlExpressionFactory.ApplyDefaultTypeMapping(_fbSqlExpressionFactory.NiladicFunction("CURRENT_DATE", false, typeof(DateTime))));
     }
     return(null);
 }
 public SqlExpression Translate(SqlExpression instance, MethodInfo method, IReadOnlyList <SqlExpression> arguments, IDiagnosticsLogger <DbLoggerCategory.Query> logger)
 {
     if (method.DeclaringType == typeof(Guid) && method.Name == nameof(Guid.NewGuid))
     {
         return(_fbSqlExpressionFactory.NiladicFunction("GEN_UUID", false, typeof(Guid)));
     }
     return(null);
 }