public int GetId() { FbConnection fbcon = new FbConnection(OpenConnection()); FbCommand getId = new FbCommand(); getId.CommandType=CommandType.Text; getId.CommandText = "select GEN_ID(SOMEGENERATOR,1) from RDB$DATABASE"; getId.Connection= fbcon; //fbcon.ServerVersion=; //fbcon.ServerVersionNumber=; fbcon.Open(); FbDataReader fbrd=getId.ExecuteReader(); fbrd.Read(); return fbrd.GetInt32(0); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)