Exemplo n.º 1
0
 public sbyte mysql_stmt_attr_set(StmtAttrTypes option, IntPtr value)
 {
     if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
     {
         return(mysql_stmt_attr_set_win32(stmt, option, value));
     }
     else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
     {
         return(mysql_stmt_attr_set_linux(stmt, option, value));
     }
     else
     {
         throw new NotSupportedException();
     }
 }
Exemplo n.º 2
0
 public static extern sbyte mysql_stmt_attr_set_win32(IntPtr stmt, StmtAttrTypes option, IntPtr value);