Commit inicial: ITCA_API_SAP_WMS (.NET Core 3.1)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
2b82744eb8
168 files changed
+11066
No files matched your search
@@ -0,0 +1,11 @@
|
||||
namespace Net.Connection.Attributes
|
||||
{
|
||||
public enum ActionType
|
||||
{
|
||||
Everything,
|
||||
View,
|
||||
Insert,
|
||||
Update,
|
||||
Delete
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
|
||||
namespace Net.Connection.Attributes
|
||||
{
|
||||
public class DBParameter : Attribute
|
||||
{
|
||||
public string name { get; set; }
|
||||
public int size { get; set; }
|
||||
public SqlDbType dbType { get; set; }
|
||||
public ParameterDirection direction { get; set; }
|
||||
public ActionType actionType;
|
||||
|
||||
public Boolean Key { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Asignacion del Tipo de Dato
|
||||
/// </summary>
|
||||
/// <param name="dbType">Tipo de dato</param>
|
||||
/// <param name="actionType">Accion a realizar Everything, View, Insert, Update, Delete</param>
|
||||
/// <param name="Key">Primary Key</param>
|
||||
public DBParameter(SqlDbType dbType, ActionType actionType, Boolean Key)
|
||||
{
|
||||
DBParameterMethod(dbType, 0, ParameterDirection.Input, "", actionType, Key);
|
||||
}
|
||||
//public DBParameter(SqlDbType dbType, ActionType actionType)
|
||||
//{
|
||||
// DBParameterMethod(dbType, 0, ParameterDirection.Input, "", actionType, false);
|
||||
//}
|
||||
//public DBParameter(SqlDbType dbType, ActionType actionType, ParameterDirection direction)
|
||||
//{
|
||||
// DBParameterMethod(dbType, 0, direction, "", actionType, false);
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// Asignacion del Tipo de Dato
|
||||
/// </summary>
|
||||
/// <param name="dbType">Tipo de Dato</param>
|
||||
/// <param name="size">Tamano</param>
|
||||
/// <param name="actionType">Accion a realizar Everything, View, Insert, Update, Delete</param>
|
||||
public DBParameter(SqlDbType dbType, int size, ActionType actionType)
|
||||
{
|
||||
DBParameterMethod(dbType, size, ParameterDirection.Input, "", actionType, false);
|
||||
}
|
||||
//public DBParameter(SqlDbType dbType, int size, ParameterDirection direction, ActionType actionType)
|
||||
//{
|
||||
// DBParameterMethod(dbType, size, direction, "", actionType, false);
|
||||
//}
|
||||
//public DBParameter(SqlDbType dbType, int size, ParameterDirection direction, string name, ActionType actionType)
|
||||
//{
|
||||
// DBParameterMethod(dbType, size, direction, name, actionType, false);
|
||||
//}
|
||||
|
||||
private void DBParameterMethod(SqlDbType dbType, int size, ParameterDirection direction, string name, ActionType actionType, Boolean Key)
|
||||
{
|
||||
this.dbType = dbType;
|
||||
this.direction = direction;
|
||||
this.size = size;
|
||||
this.name = name;
|
||||
this.actionType = actionType;
|
||||
this.Key = Key;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in new issue
Block a user