Esempio n. 1
0
        public static ICommandCustom insert <T>(T entity)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom();

            return(fwEntityToFWCommand.insert <T>(entity));
        }
Esempio n. 2
0
        public static List <IDbResultCustom> insertOrUpdate <T>(ITransactionCustom transaction, List <T> entityList, List <string> idPropertyNameList)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom(transaction);

            return(fwEntityToFWCommand.insertOrUpdate <T>(transaction, entityList, idPropertyNameList));
        }
Esempio n. 3
0
        public static IDbResultCustom insertOrUpdate <T>(IConnectionCustom connection, T entity, List <string> idPropertyNameList)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom(connection);

            return(fwEntityToFWCommand.insertOrUpdate <T>(connection, entity, idPropertyNameList));
        }
Esempio n. 4
0
        public static List <IDbResultCustom> insertOrUpdate <T>(string connectionString, List <T> entityList, List <string> idPropertyNameList)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom(connectionString);

            return(fwEntityToFWCommand.insertOrUpdate <T>(connectionString, entityList, idPropertyNameList));
        }
Esempio n. 5
0
        public static List <ICommandCustom> update <T>(List <T> entityList, string afterWhereSql, List <IParameterCustom> afterWhereSqlParams)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom();

            return(fwEntityToFWCommand.update <T>(entityList, afterWhereSql, afterWhereSqlParams));
        }
Esempio n. 6
0
        public static IDbResultCustom insertOrUpdate <T>(T entity, List <string> idPropertyNameList)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom();

            return(fwEntityToFWCommand.insertOrUpdate <T>(entity, idPropertyNameList));
        }
Esempio n. 7
0
        //add by liuzhicheng
        public static ICommandCustom updateExcludeNull <T>(T entity, string afterWhereSql, List <IParameterCustom> afterWhereSqlParams)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom();

            return(fwEntityToFWCommand.updateExcludeNull <T>(entity, afterWhereSql, afterWhereSqlParams));
        }
Esempio n. 8
0
        public static List <T> queryList <T>(ITransactionCustom transaction, ICommandCustom command)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom(command.DatabaseTypeCustom);

            return(fwEntityToFWCommand.queryList <T>(transaction, command));
        }
Esempio n. 9
0
        public static T query <T>(IConnectionCustom connection, ICommandCustom command)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom(command.DatabaseTypeCustom);

            return(fwEntityToFWCommand.query <T>(connection, command));
        }
Esempio n. 10
0
        public static List <T> queryList <T>(string connectionString, ICommandCustom command)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom(command.DatabaseTypeCustom);

            return(fwEntityToFWCommand.queryList <T>(connectionString, command));
        }
Esempio n. 11
0
        public static T query <T>(ITransactionCustom transaction, string afterWhereSql, List <IParameterCustom> afterWhereSqlParams)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom(transaction);

            return(fwEntityToFWCommand.query <T>(transaction, afterWhereSql, afterWhereSqlParams));
        }
Esempio n. 12
0
        public static T query <T>(string connectionString, string afterWhereSql, List <IParameterCustom> afterWhereSqlParams)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom(connectionString);

            return(fwEntityToFWCommand.query <T>(connectionString, afterWhereSql, afterWhereSqlParams));
        }
Esempio n. 13
0
        public static List <ICommandCustom> delete <T>(string afterWhereSql, List <IParameterCustom> afterWhereSqlParams)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom();

            return(fwEntityToFWCommand.delete <T>(afterWhereSql, afterWhereSqlParams));
        }
Esempio n. 14
0
        public static List <ICommandCustom> insert <T>(List <T> entityList)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom();

            return(fwEntityToFWCommand.insert <T>(entityList));
        }
Esempio n. 15
0
        public static List <IDbResultCustom> insertOrUpdate <T>(List <T> entityList, List <string> idPropertyNameList, List <string> uniquePropertyNameList)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom();

            return(fwEntityToFWCommand.insertOrUpdate <T>(entityList, idPropertyNameList, uniquePropertyNameList));
        }