コード例 #1
0
        public static ICommandCustom insert <T>(T entity)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom();

            return(fwEntityToFWCommand.insert <T>(entity));
        }
コード例 #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));
        }
コード例 #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));
        }
コード例 #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));
        }
コード例 #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));
        }
コード例 #6
0
        public static IDbResultCustom insertOrUpdate <T>(T entity, List <string> idPropertyNameList)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom();

            return(fwEntityToFWCommand.insertOrUpdate <T>(entity, idPropertyNameList));
        }
コード例 #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));
        }
コード例 #8
0
        public static List <T> queryList <T>(ITransactionCustom transaction, ICommandCustom command)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom(command.DatabaseTypeCustom);

            return(fwEntityToFWCommand.queryList <T>(transaction, command));
        }
コード例 #9
0
        public static T query <T>(IConnectionCustom connection, ICommandCustom command)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom(command.DatabaseTypeCustom);

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

            return(fwEntityToFWCommand.queryList <T>(connectionString, command));
        }
コード例 #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));
        }
コード例 #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));
        }
コード例 #13
0
        public static List <ICommandCustom> delete <T>(string afterWhereSql, List <IParameterCustom> afterWhereSqlParams)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom();

            return(fwEntityToFWCommand.delete <T>(afterWhereSql, afterWhereSqlParams));
        }
コード例 #14
0
        public static List <ICommandCustom> insert <T>(List <T> entityList)
        {
            EntityToCommandCustom fwEntityToFWCommand = new EntityToCommandCustom();

            return(fwEntityToFWCommand.insert <T>(entityList));
        }
コード例 #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));
        }