Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.77 KB | None | 0 0
  1. namespace SQL_FireBird
  2. {
  3.     public class FireBird_Conn
  4.     {
  5.              
  6.  
  7.         static public FbConnection fbConn;
  8.         static public FbCommandBuilder fbCommand = new FbCommandBuilder();
  9.  
  10.         public static FbConnection FBConn
  11.         {
  12.             get {   return fbConn;  }
  13.         }
  14.         public  static FbCommandBuilder FBCommand
  15.         {
  16.             get {  return fbCommand;  }
  17.         }
  18.  
  19.         public static Boolean conectionFB (Boolean bAtive)
  20.         {
  21.             if(bAtive)
  22.             {
  23.                
  24.                 string _conn;
  25.                 _conn =  String.Format(@"DataSource={0}; Database=C:\\arq.fdb; Port={1}; username= SYSDBA; password = masterkey", IP, Port);
  26.                
  27.  
  28.             }
  29.  
  30.  
  31.         }
  32.  
  33.  
  34.  
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement