示例#1
0
        private PocoSqlStoredProcedureMap getStoredProcedureMap(PocoSqlStoredProceduresMapping spMappings, SqlBuilderTask.QueryTypeEnum queryType)
        {
            switch (queryType)
            {
            case SqlBuilderTask.QueryTypeEnum.Select:
                return(spMappings.SelectMap);

            case SqlBuilderTask.QueryTypeEnum.Insert:
                return(spMappings.InsertMap);

            case SqlBuilderTask.QueryTypeEnum.Update:
                return(spMappings.UpdateMap);

            case SqlBuilderTask.QueryTypeEnum.Delete:
                return(spMappings.DeleteMap);

            default:
                return(null);
            }
        }
 public PocoSqlMapping <T> MapToStoredProcedures(Action <PocoSqlStoredProceduresMapping> storedProceduresMappings)
 {
     _mappedStoredProcedures = new PocoSqlStoredProceduresMapping();
     storedProceduresMappings.Invoke(_mappedStoredProcedures);
     return(this);
 }