本文整理汇总了C#中OGen.Libraries.DataLayer.DBConnection类的典型用法代码示例。如果您正苦于以下问题:C# DBConnection类的具体用法?C# DBConnection怎么用?C# DBConnection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DBConnection类属于OGen.Libraries.DataLayer命名空间,在下文中一共展示了DBConnection类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: getObject
/// <summary>
/// Selects FRM_AnswerTrigger values from Database and assigns them to the appropriate DO_FRM_AnswerTrigger property.
/// </summary>
/// <param name="IFAnswer_in">IFAnswer</param>
/// <param name="IFTrigger_in">IFTrigger</param>
/// <param name="IFQuestion_in">IFQuestion</param>
/// <param name="dbConnection_in">Database connection, making the use of Database Transactions possible on a sequence of operations across the same or multiple DataObjects</param>
/// <returns>null if FRM_AnswerTrigger doesn't exists at Database</returns>
public static SO_FRM_AnswerTrigger getObject(
long IFAnswer_in,
int IFTrigger_in,
long IFQuestion_in,
DBConnection dbConnection_in
) {
SO_FRM_AnswerTrigger _output = null;
DBConnection _connection = (dbConnection_in == null)
? DO__Utilities.DBConnection_createInstance(
DO__Utilities.DBServerType,
DO__Utilities.DBConnectionstring,
DO__Utilities.DBLogfile
)
: dbConnection_in;
IDbDataParameter[] _dataparameters = new IDbDataParameter[] {
_connection.newDBDataParameter("IFAnswer_", DbType.Int64, ParameterDirection.InputOutput, IFAnswer_in, 0),
_connection.newDBDataParameter("IFTrigger_", DbType.Int32, ParameterDirection.InputOutput, IFTrigger_in, 0),
_connection.newDBDataParameter("IFQuestion_", DbType.Int64, ParameterDirection.InputOutput, IFQuestion_in, 0),
_connection.newDBDataParameter("IFUser__audit_", DbType.Int64, ParameterDirection.Output, null, 0),
_connection.newDBDataParameter("Date__audit_", DbType.DateTime, ParameterDirection.Output, null, 0)
};
_connection.Execute_SQLFunction("sp0_FRM_AnswerTrigger_getObject", _dataparameters);
if (dbConnection_in == null) { _connection.Dispose(); }
if (_dataparameters[0].Value != DBNull.Value) {
_output = new SO_FRM_AnswerTrigger();
if (_dataparameters[0].Value == System.DBNull.Value) {
_output.IFAnswer = 0L;
} else {
_output.IFAnswer = (long)_dataparameters[0].Value;
}
if (_dataparameters[1].Value == System.DBNull.Value) {
_output.IFTrigger = 0;
} else {
_output.IFTrigger = (int)_dataparameters[1].Value;
}
if (_dataparameters[2].Value == System.DBNull.Value) {
_output.IFQuestion = 0L;
} else {
_output.IFQuestion = (long)_dataparameters[2].Value;
}
if (_dataparameters[3].Value == System.DBNull.Value) {
_output.IFUser__audit = 0L;
} else {
_output.IFUser__audit = (long)_dataparameters[3].Value;
}
if (_dataparameters[4].Value == System.DBNull.Value) {
_output.Date__audit = new DateTime(1900, 1, 1);
} else {
_output.Date__audit = (DateTime)_dataparameters[4].Value;
}
_output.HasChanges = false;
return _output;
}
return null;
}
示例2: getObject
/// <summary>
/// Selects NET_Profile__default values from Database and assigns them to the appropriate DO_NET_Profile__default property.
/// </summary>
/// <param name="IFProfile_in">IFProfile</param>
/// <param name="dbConnection_in">Database connection, making the use of Database Transactions possible on a sequence of operations across the same or multiple DataObjects</param>
/// <returns>null if NET_Profile__default doesn't exists at Database</returns>
public static SO_NET_Profile__default getObject(
long IFProfile_in,
DBConnection dbConnection_in
) {
SO_NET_Profile__default _output = null;
DBConnection _connection = (dbConnection_in == null)
? DO__Utilities.DBConnection_createInstance(
DO__Utilities.DBServerType,
DO__Utilities.DBConnectionstring,
DO__Utilities.DBLogfile
)
: dbConnection_in;
IDbDataParameter[] _dataparameters = new IDbDataParameter[] {
_connection.newDBDataParameter("IFProfile_", DbType.Int64, ParameterDirection.InputOutput, IFProfile_in, 0)
};
_connection.Execute_SQLFunction("sp0_NET_Profile__default_getObject", _dataparameters);
if (dbConnection_in == null) { _connection.Dispose(); }
if (_dataparameters[0].Value != DBNull.Value) {
_output = new SO_NET_Profile__default();
if (_dataparameters[0].Value == System.DBNull.Value) {
_output.IFProfile = 0L;
} else {
_output.IFProfile = (long)_dataparameters[0].Value;
}
_output.HasChanges = false;
return _output;
}
return null;
}
示例3: GetDBServerType
public static DBServerTypes GetDBServerType(
DBConnection connection_in
) {
#if PostgreSQL
if (connection_in is DBConnection_PostgreSQL) {
return DBServerTypes.PostgreSQL;
}
else
#endif
if (connection_in is DBConnection_SQLServer) {
return DBServerTypes.SQLServer;
}
#if MySQL
else
if (connection_in is DBConnection_MySQL) {
return DBServerTypes.MySQL;
}
#endif
throw new Exception(
string.Format(
System.Globalization.CultureInfo.CurrentCulture,
"unsuported db type: {0}",
connection_in.ToString()
)
);
}
示例4: getObject_byUser
/// <summary>
/// Selects vNET_User values from Database (based on the search condition) and assigns them to the appropriate DO0_vNET_User property.
/// </summary>
/// <param name="IDUser_search_in">IDUser search condition</param>
/// <param name="dbConnection_in">Database connection, making the use of Database Transactions possible on a sequence of operations across the same or multiple DataObjects</param>
/// <returns>null if vNET_User doesn't exists at Database</returns>
public static SO_vNET_User getObject_byUser(
long IDUser_search_in,
DBConnection dbConnection_in
) {
SO_vNET_User _output = null;
DBConnection _connection = (dbConnection_in == null)
? DO__Utilities.DBConnection_createInstance(
DO__Utilities.DBServerType,
DO__Utilities.DBConnectionstring,
DO__Utilities.DBLogfile
)
: dbConnection_in;
IDbDataParameter[] _dataparameters = new IDbDataParameter[] {
_connection.newDBDataParameter("IDUser_search_", DbType.Int64, ParameterDirection.Input, IDUser_search_in, 0),
_connection.newDBDataParameter("IDUser", DbType.Int64, ParameterDirection.Output, null, 0),
_connection.newDBDataParameter("IFApplication", DbType.Int32, ParameterDirection.Output, null, 0),
_connection.newDBDataParameter("Login", DbType.AnsiString, ParameterDirection.Output, null, 255),
_connection.newDBDataParameter("Name", DbType.AnsiString, ParameterDirection.Output, null, 255),
_connection.newDBDataParameter("Email", DbType.AnsiString, ParameterDirection.Output, null, 255)
};
_connection.Execute_SQLFunction(
"sp0_vNET_User_getObject_byUser",
_dataparameters
);
if (dbConnection_in == null) { _connection.Dispose(); }
if (_dataparameters[1].Value != DBNull.Value) {
_output = new SO_vNET_User();
if (_dataparameters[1].Value == System.DBNull.Value) {
_output.IDUser = 0L;
} else {
_output.IDUser = (long)_dataparameters[1].Value;
}
if (_dataparameters[2].Value == System.DBNull.Value) {
_output.IFApplication_isNull = true;
} else {
_output.IFApplication = (int)_dataparameters[2].Value;
}
if (_dataparameters[3].Value == System.DBNull.Value) {
_output.Login = string.Empty;
} else {
_output.Login = (string)_dataparameters[3].Value;
}
if (_dataparameters[4].Value == System.DBNull.Value) {
_output.Name_isNull = true;
} else {
_output.Name = (string)_dataparameters[4].Value;
}
if (_dataparameters[5].Value == System.DBNull.Value) {
_output.Email_isNull = true;
} else {
_output.Email = (string)_dataparameters[5].Value;
}
return _output;
}
return null;
}
示例5: getObject
/// <summary>
/// Selects CRD_Permission values from Database and assigns them to the appropriate DO_CRD_Permission property.
/// </summary>
/// <param name="IDPermission_in">IDPermission</param>
/// <param name="dbConnection_in">Database connection, making the use of Database Transactions possible on a sequence of operations across the same or multiple DataObjects</param>
/// <returns>null if CRD_Permission doesn't exists at Database</returns>
public static SO_CRD_Permission getObject(
long IDPermission_in,
DBConnection dbConnection_in
) {
SO_CRD_Permission _output = null;
DBConnection _connection = (dbConnection_in == null)
? DO__Utilities.DBConnection_createInstance(
DO__Utilities.DBServerType,
DO__Utilities.DBConnectionstring,
DO__Utilities.DBLogfile
)
: dbConnection_in;
IDbDataParameter[] _dataparameters = new IDbDataParameter[] {
_connection.newDBDataParameter("IDPermission_", DbType.Int64, ParameterDirection.InputOutput, IDPermission_in, 0),
_connection.newDBDataParameter("Name_", DbType.AnsiString, ParameterDirection.Output, null, 255),
_connection.newDBDataParameter("IFApplication_", DbType.Int32, ParameterDirection.Output, null, 0),
_connection.newDBDataParameter("IFTable_", DbType.Int64, ParameterDirection.Output, null, 0),
_connection.newDBDataParameter("IFAction_", DbType.Int64, ParameterDirection.Output, null, 0)
};
_connection.Execute_SQLFunction("sp0_CRD_Permission_getObject", _dataparameters);
if (dbConnection_in == null) { _connection.Dispose(); }
if (_dataparameters[0].Value != DBNull.Value) {
_output = new SO_CRD_Permission();
if (_dataparameters[0].Value == System.DBNull.Value) {
_output.IDPermission = 0L;
} else {
_output.IDPermission = (long)_dataparameters[0].Value;
}
if (_dataparameters[1].Value == System.DBNull.Value) {
_output.Name = string.Empty;
} else {
_output.Name = (string)_dataparameters[1].Value;
}
if (_dataparameters[2].Value == System.DBNull.Value) {
_output.IFApplication_isNull = true;
} else {
_output.IFApplication = (int)_dataparameters[2].Value;
}
if (_dataparameters[3].Value == System.DBNull.Value) {
_output.IFTable_isNull = true;
} else {
_output.IFTable = (long)_dataparameters[3].Value;
}
if (_dataparameters[4].Value == System.DBNull.Value) {
_output.IFAction_isNull = true;
} else {
_output.IFAction = (long)_dataparameters[4].Value;
}
_output.HasChanges = false;
return _output;
}
return null;
}
示例6: DO__base
// #region public DO__base(...);
/// <summary>
/// Initializes a new instance of <see cref="DO__base">DO__base</see>
/// </summary>
/// <param name="connection_in">DB Connection</param>
protected DO__base(
DBConnection connection_in
) : this (
connection_in,
connection_in.DBServerType,
connection_in.Connectionstring,
false, // connection_insideInstance_in
null
) {}
示例7: getObject
/// <summary>
/// Selects DIC_TextLanguage values from Database and assigns them to the appropriate DO_DIC_TextLanguage property.
/// </summary>
/// <param name="IFText_in">IFText</param>
/// <param name="IFLanguage_in">IFLanguage</param>
/// <param name="dbConnection_in">Database connection, making the use of Database Transactions possible on a sequence of operations across the same or multiple DataObjects</param>
/// <returns>null if DIC_TextLanguage doesn't exists at Database</returns>
public static SO_DIC_TextLanguage getObject(
long IFText_in,
int IFLanguage_in,
DBConnection dbConnection_in
) {
SO_DIC_TextLanguage _output = null;
DBConnection _connection = (dbConnection_in == null)
? DO__Utilities.DBConnection_createInstance(
DO__Utilities.DBServerType,
DO__Utilities.DBConnectionstring,
DO__Utilities.DBLogfile
)
: dbConnection_in;
IDbDataParameter[] _dataparameters = new IDbDataParameter[] {
_connection.newDBDataParameter("IFText_", DbType.Int64, ParameterDirection.InputOutput, IFText_in, 0),
_connection.newDBDataParameter("IFLanguage_", DbType.Int32, ParameterDirection.InputOutput, IFLanguage_in, 0),
_connection.newDBDataParameter("Text__small_", DbType.AnsiString, ParameterDirection.Output, null, 8000),
_connection.newDBDataParameter("Text__large_", DbType.AnsiString, ParameterDirection.Output, null, 0)
};
_connection.Execute_SQLFunction("sp0_DIC_TextLanguage_getObject", _dataparameters);
if (dbConnection_in == null) { _connection.Dispose(); }
if (_dataparameters[0].Value != DBNull.Value) {
_output = new SO_DIC_TextLanguage();
if (_dataparameters[0].Value == System.DBNull.Value) {
_output.IFText = 0L;
} else {
_output.IFText = (long)_dataparameters[0].Value;
}
if (_dataparameters[1].Value == System.DBNull.Value) {
_output.IFLanguage = 0;
} else {
_output.IFLanguage = (int)_dataparameters[1].Value;
}
if (_dataparameters[2].Value == System.DBNull.Value) {
_output.Text__small_isNull = true;
} else {
_output.Text__small = (string)_dataparameters[2].Value;
}
if (_dataparameters[3].Value == System.DBNull.Value) {
_output.Text__large_isNull = true;
} else {
_output.Text__large = (string)_dataparameters[3].Value;
}
_output.HasChanges = false;
return _output;
}
return null;
}
示例8: getObject
/// <summary>
/// Selects NWS_ContentHighlight values from Database and assigns them to the appropriate DO_NWS_ContentHighlight property.
/// </summary>
/// <param name="IFContent_in">IFContent</param>
/// <param name="IFHighlight_in">IFHighlight</param>
/// <param name="dbConnection_in">Database connection, making the use of Database Transactions possible on a sequence of operations across the same or multiple DataObjects</param>
/// <returns>null if NWS_ContentHighlight doesn't exists at Database</returns>
public static SO_NWS_ContentHighlight getObject(
long IFContent_in,
long IFHighlight_in,
DBConnection dbConnection_in
) {
SO_NWS_ContentHighlight _output = null;
DBConnection _connection = (dbConnection_in == null)
? DO__Utilities.DBConnection_createInstance(
DO__Utilities.DBServerType,
DO__Utilities.DBConnectionstring,
DO__Utilities.DBLogfile
)
: dbConnection_in;
IDbDataParameter[] _dataparameters = new IDbDataParameter[] {
_connection.newDBDataParameter("IFContent_", DbType.Int64, ParameterDirection.InputOutput, IFContent_in, 0),
_connection.newDBDataParameter("IFHighlight_", DbType.Int64, ParameterDirection.InputOutput, IFHighlight_in, 0),
_connection.newDBDataParameter("Begin_date_", DbType.DateTime, ParameterDirection.Output, null, 0),
_connection.newDBDataParameter("End_date_", DbType.DateTime, ParameterDirection.Output, null, 0)
};
_connection.Execute_SQLFunction("sp0_NWS_ContentHighlight_getObject", _dataparameters);
if (dbConnection_in == null) { _connection.Dispose(); }
if (_dataparameters[0].Value != DBNull.Value) {
_output = new SO_NWS_ContentHighlight();
if (_dataparameters[0].Value == System.DBNull.Value) {
_output.IFContent = 0L;
} else {
_output.IFContent = (long)_dataparameters[0].Value;
}
if (_dataparameters[1].Value == System.DBNull.Value) {
_output.IFHighlight = 0L;
} else {
_output.IFHighlight = (long)_dataparameters[1].Value;
}
if (_dataparameters[2].Value == System.DBNull.Value) {
_output.Begin_date_isNull = true;
} else {
_output.Begin_date = (DateTime)_dataparameters[2].Value;
}
if (_dataparameters[3].Value == System.DBNull.Value) {
_output.End_date_isNull = true;
} else {
_output.End_date = (DateTime)_dataparameters[3].Value;
}
_output.HasChanges = false;
return _output;
}
return null;
}
示例9: insObject_CreateUser
internal static long insObject_CreateUser(
Sessionuser sessionUser_in,
string login_in,
bool selectIdentity_in,
ref List<int> errorlist_in,
DBConnection con_in
) {
long _output = -1L;
// ToDos: here! must have permission to create user
if (!sessionUser_in.hasPermission(
PermissionType.User__insert
)) {
errorlist_in.Add(ErrorType.user__lack_of_permissions_to_write);
return _output;
}
if (!Sessionuser.checkLogin(login_in, ref errorlist_in)) {
return _output;
}
bool _constraint;
_output = DO_CRD_User.insObject(
new SO_CRD_User(
-1L,
login_in,
// ToDos: here! encrypt before sending...
login_in, // default: password = login
sessionUser_in.IDApplication
),
selectIdentity_in,
out _constraint,
con_in
);
if (_constraint) {
errorlist_in.Add(ErrorType.data__constraint_violation);
} else {
if (con_in == null) {
// assuming NO other (internal) operations are going on
errorlist_in.Add(ErrorType.user__successfully_created__WARNING);
}
}
return _output;
}
示例10: getObject
/// <summary>
/// Selects FRM_Questiontype values from Database and assigns them to the appropriate DO_FRM_Questiontype property.
/// </summary>
/// <param name="IDQuestiontype_in">IDQuestiontype</param>
/// <param name="dbConnection_in">Database connection, making the use of Database Transactions possible on a sequence of operations across the same or multiple DataObjects</param>
/// <returns>null if FRM_Questiontype doesn't exists at Database</returns>
public static SO_FRM_Questiontype getObject(
int IDQuestiontype_in,
DBConnection dbConnection_in
) {
SO_FRM_Questiontype _output = null;
DBConnection _connection = (dbConnection_in == null)
? DO__Utilities.DBConnection_createInstance(
DO__Utilities.DBServerType,
DO__Utilities.DBConnectionstring,
DO__Utilities.DBLogfile
)
: dbConnection_in;
IDbDataParameter[] _dataparameters = new IDbDataParameter[] {
_connection.newDBDataParameter("IDQuestiontype_", DbType.Int32, ParameterDirection.InputOutput, IDQuestiontype_in, 0),
_connection.newDBDataParameter("Name_", DbType.AnsiString, ParameterDirection.Output, null, 255),
_connection.newDBDataParameter("RegularExpression_", DbType.AnsiString, ParameterDirection.Output, null, 1024)
};
_connection.Execute_SQLFunction("sp0_FRM_Questiontype_getObject", _dataparameters);
if (dbConnection_in == null) { _connection.Dispose(); }
if (_dataparameters[0].Value != DBNull.Value) {
_output = new SO_FRM_Questiontype();
if (_dataparameters[0].Value == System.DBNull.Value) {
_output.IDQuestiontype = 0;
} else {
_output.IDQuestiontype = (int)_dataparameters[0].Value;
}
if (_dataparameters[1].Value == System.DBNull.Value) {
_output.Name = string.Empty;
} else {
_output.Name = (string)_dataparameters[1].Value;
}
if (_dataparameters[2].Value == System.DBNull.Value) {
_output.RegularExpression_isNull = true;
} else {
_output.RegularExpression = (string)_dataparameters[2].Value;
}
_output.HasChanges = false;
return _output;
}
return null;
}
示例11: getObject
/// <summary>
/// Selects DIC_Text values from Database and assigns them to the appropriate DO_DIC_Text property.
/// </summary>
/// <param name="IDText_in">IDText</param>
/// <param name="dbConnection_in">Database connection, making the use of Database Transactions possible on a sequence of operations across the same or multiple DataObjects</param>
/// <returns>null if DIC_Text doesn't exists at Database</returns>
public static SO_DIC_Text getObject(
long IDText_in,
DBConnection dbConnection_in
) {
SO_DIC_Text _output = null;
DBConnection _connection = (dbConnection_in == null)
? DO__Utilities.DBConnection_createInstance(
DO__Utilities.DBServerType,
DO__Utilities.DBConnectionstring,
DO__Utilities.DBLogfile
)
: dbConnection_in;
IDbDataParameter[] _dataparameters = new IDbDataParameter[] {
_connection.newDBDataParameter("IDText_", DbType.Int64, ParameterDirection.InputOutput, IDText_in, 0),
_connection.newDBDataParameter("IFApplication_", DbType.Int32, ParameterDirection.Output, null, 0),
_connection.newDBDataParameter("SourceTableField_ref_", DbType.Int32, ParameterDirection.Output, null, 0)
};
_connection.Execute_SQLFunction("sp0_DIC_Text_getObject", _dataparameters);
if (dbConnection_in == null) { _connection.Dispose(); }
if (_dataparameters[0].Value != DBNull.Value) {
_output = new SO_DIC_Text();
if (_dataparameters[0].Value == System.DBNull.Value) {
_output.IDText = 0L;
} else {
_output.IDText = (long)_dataparameters[0].Value;
}
if (_dataparameters[1].Value == System.DBNull.Value) {
_output.IFApplication_isNull = true;
} else {
_output.IFApplication = (int)_dataparameters[1].Value;
}
if (_dataparameters[2].Value == System.DBNull.Value) {
_output.SourceTableField_ref_isNull = true;
} else {
_output.SourceTableField_ref = (int)_dataparameters[2].Value;
}
_output.HasChanges = false;
return _output;
}
return null;
}
示例12: Execute_SQL__select
private DataTable Execute_SQL__select(DBConnection dbconnections_in) {
switch ((DBServerTypes)Enum.Parse(typeof(DBServerTypes), dbconnections_in.DBServerType)) {
case DBServerTypes.SQLServer:
case DBServerTypes.PostgreSQL: {
return dbconnections_in.Execute_SQLQuery_returnDataTable(string.Format(
"select \"IDUser\", \"Login\", \"Password\" from \"CRD_User\" where \"Login\" = 'test-{0}'",
this.testid_
));
}
default: {
throw new Exception(
string.Format(
"unsuported db type: {0}",
dbconnections_in.DBServerType.ToString()
)
);
}
}
}
示例13: Execute_SQL__insert
private void Execute_SQL__insert(DBConnection dbconnections_in) {
switch ((DBServerTypes)Enum.Parse(typeof(DBServerTypes), dbconnections_in.DBServerType)) {
case DBServerTypes.SQLServer:
case DBServerTypes.PostgreSQL: {
dbconnections_in.Execute_SQLQuery(string.Format(
"insert into \"CRD_User\" (\"Login\", \"Password\", \"IFApplication\") values ('test-{0}', 'password', null)",
this.testid_
));
break;
}
default: {
throw new Exception(
string.Format(
"unsuported db type: {0}",
dbconnections_in.DBServerType.ToString()
)
);
}
}
}
示例14: Execute_SQL__delete
private void Execute_SQL__delete(DBConnection dbconnections_in) {
switch ((DBServerTypes)Enum.Parse(typeof(DBServerTypes), dbconnections_in.DBServerType)) {
case DBServerTypes.SQLServer:
case DBServerTypes.PostgreSQL: {
dbconnections_in.Execute_SQLQuery(string.Format(
"delete from \"CRD_User\" where \"Login\" = 'test-{0}'",
this.testid_
));
break;
}
default: {
throw new Exception(
string.Format(
"unsuported db type: {0}",
dbconnections_in.DBServerType.ToString()
)
);
}
}
}
示例15: getObject
/// <summary>
/// Selects DIC_LanguageApplication values from Database and assigns them to the appropriate DO_DIC_LanguageApplication property.
/// </summary>
/// <param name="IFLanguage_in">IFLanguage</param>
/// <param name="IFApplication_in">IFApplication</param>
/// <param name="dbConnection_in">Database connection, making the use of Database Transactions possible on a sequence of operations across the same or multiple DataObjects</param>
/// <returns>null if DIC_LanguageApplication doesn't exists at Database</returns>
public static SO_DIC_LanguageApplication getObject(
int IFLanguage_in,
int IFApplication_in,
DBConnection dbConnection_in
) {
SO_DIC_LanguageApplication _output = null;
DBConnection _connection = (dbConnection_in == null)
? DO__Utilities.DBConnection_createInstance(
DO__Utilities.DBServerType,
DO__Utilities.DBConnectionstring,
DO__Utilities.DBLogfile
)
: dbConnection_in;
IDbDataParameter[] _dataparameters = new IDbDataParameter[] {
_connection.newDBDataParameter("IFLanguage_", DbType.Int32, ParameterDirection.InputOutput, IFLanguage_in, 0),
_connection.newDBDataParameter("IFApplication_", DbType.Int32, ParameterDirection.InputOutput, IFApplication_in, 0)
};
_connection.Execute_SQLFunction("sp0_DIC_LanguageApplication_getObject", _dataparameters);
if (dbConnection_in == null) { _connection.Dispose(); }
if (_dataparameters[0].Value != DBNull.Value) {
_output = new SO_DIC_LanguageApplication();
if (_dataparameters[0].Value == System.DBNull.Value) {
_output.IFLanguage = 0;
} else {
_output.IFLanguage = (int)_dataparameters[0].Value;
}
if (_dataparameters[1].Value == System.DBNull.Value) {
_output.IFApplication = 0;
} else {
_output.IFApplication = (int)_dataparameters[1].Value;
}
_output.HasChanges = false;
return _output;
}
return null;
}