public Relationship(string identifier_, string source_, string target_, string type_, string name_, AccesType accesType_, Property[] properties_) { this.identifier_ = identifier_; this.source_ = source_; this.target_ = target_; this.type_ = type_; this.name_ = name_; this.accesType_ = accesType_; this.properties_ = properties_; }
public static List <T> RunFile <T>(string fileContent, AccesType asAdmin = AccesType.StandardUser, params string[] replacements) { string slqCommandText = string.Format(fileContent, replacements); SqlCommand sqlCommand = new SqlCommand(slqCommandText); switch (asAdmin) { case AccesType.Admin: return(serviceAccessDBAdmin.SQLRunQueryProcedure <T>(sqlCommand)); case AccesType.AdminAtMasterDB: return(serviceAccessDBAdminMaster.SQLRunQueryProcedure <T>(sqlCommand)); default: return(serviceAccessDB.SQLRunQueryProcedure <T>(sqlCommand)); } }
public static void RunFile(string fileContent, AccesType asAdmin = AccesType.StandardUser, params string[] replacements) { string slqCommandText = string.Format(fileContent, replacements); SqlCommand sqlCommand = new SqlCommand(slqCommandText); switch (asAdmin) { case AccesType.Admin: serviceAccessDBAdmin.SQLRunNonQueryProcedure(sqlCommand); break; case AccesType.AdminAtMasterDB: serviceAccessDBAdminMaster.SQLRunNonQueryProcedure(sqlCommand); break; default: serviceAccessDB.SQLRunNonQueryProcedure(sqlCommand); break; } }