El monstruito no soy yo, es el SharePoint

El Blog de Luis Mañez, dedicado a tecnologías MS, principalmente SharePoint y Office 365

SharePoint 2010: Liberada nueva versión de la SharePoint Software Factory

Hace un tiempo os hablé de la SharePoint Software Factory. Pues bien, hace unos días que se ha liberado una nueva versión, la 3.2

Os copio la lista de novedades, y os pongo algún pantallazo de mis favoritas Sonrisa

  • Menu "List And Doc": Linq to SharePoint (imports the schema of several lists to LINQ classes)
  • Menu "BCS": Simple BCS Model
  • Menu "BCS": Import BCS Model from Database
  • Menu "BCS": Model BCS Model with classes
  • Menu "BCS": Quick Deploy BCS Model (undeploys/deploys BCS model via powershell)
  • Menu "Security": Minimal CAS, Medium CAS, recipes for single CAS Policy Items etc.
  • Menu "ASP.NET": WCF Webservice
  • code snippets added, partly from http://spcodesnippets.codeplex.com Thx to Ayman El-Hattab (http://aymanelhattab.com)
  • Added custom FxCopDictionary to allow project specific exclusions for abbreviations, keyword, acronyns etc. Dictionary will be automatically used in Realase build configuration.

Fijaros que maravilla para generar un data context de LINQ to SharePoint:

image

Tras el asistente, nos genera, por un lado, un fichero XML de configuración del SPMetal, por si queremos repetir la generación, y por otro lado, 2 ficheros con una clase parcial para el contexto.

   1: <?xml version="1.0" encoding="utf-8"?>
   2: <!-- 
   3: Use this file to re-import the lists for LINQ to SharePoint
   4: Imported from URL: http://team.heroes.lab/
   5: Call to SPMetal: "C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN\spmetal.exe" /web:"http://team.heroes.lab/" /parameters:"E:\ORIGEN\Alejandria\Lab\SPSF.v32.ApplicationSample\Components\LinqToSharePoint1\LinqToSharePoint1Context.xml" /language:csharp /namespace:SPSF.v32.ApplicationSample.Components /code:"E:\ORIGEN\Alejandria\Lab\SPSF.v32.ApplicationSample\Components\LINQToSharePointDefinitions\LinqToSharePoint1\LinqToSharePoint1Context.designer.cs"
   6: -->
   7: <!-- Code initially generated with SharePoint Software Factory 2010, Version 3.2 , spsf.codeplex.com -->
   8: <Web
   9:     AccessModifier="Public"
  10:     Class="LinqToSharePoint1Context" xmlns="http://schemas.microsoft.com/SharePoint/2009/spmetal">
  11:     <List
  12:         Name="Announcements">
  13:         <ContentType
  14:             Name="Anuncio">
  15:             <Column
  16:                 Name="ContentType" />
  17:             <Column
  18:                 Name="Title" />
  19:             <Column
  20:                 Name="Body" />
  21:             <Column
  22:                 Name="Expires" />
  23:             <ExcludeOtherColumns />
  24:         </ContentType>
  25:         <ContentType
  26:             Name="Carpeta">
  27:             <Column
  28:                 Name="ContentType" />
  29:             <Column
  30:                 Name="Title" />
  31:             <Column
  32:                 Name="FileLeafRef" />
  33:             <Column
  34:                 Name="ItemChildCount" />
  35:             <Column
  36:                 Name="FolderChildCount" />
  37:             <ExcludeOtherColumns />
  38:         </ContentType>
  39:     </List>
  40:     <ExcludeOtherLists />
  41:     <ExcludeOtherContentTypes />
  42: </Web>
image image

También podemos añadir servicios de WCF, donde la plantilla ya prepara el package para su despliegue en el servidor de SharePoint:

image

image

Otra novedad es que se han añadido numerosos code-snippets. Aquí tenemos las categorías:

image

Destacar también que dispone de un asistente para migrar a esta última versión, proyectos realizados en la versión anterior.

Un saludo!!

Posted: 23/2/2012 15:30 por Luis Mañez | con no comments
Comparte este post: