Questions tagged [spmetal]

9 questions
2
votes
1 answer

Sharepoint 2010 - caml query performance expectation

What is a reasonable level of performance I should expect from querying a very large list in Sharepoint 2010? My list is only 1000 items and after a few days of looking at Sharepoint performance dos and don'ts I still couldn't determine what a good…
1
vote
1 answer

How to get checkbox ticked on gridview based on Sharepoint list? ASP.NET, c#

Im trying to get checkbox ticked based on Sharepoint data. Example, A = true, B = true, C = false. How I'm going to make checkbox ticked on A and B? I want display the checkbox in gridview on page loaded. It is possible to bind the checkbox with the…
Rick
  • 541
  • 1
  • 8
  • 22
1
vote
1 answer

LINQ: Aggregate Rows based on dictionary or mapping?

I am firing q LINQ query against an SP List to get all Employees involved, how many items belong to them and the overall percentage. I was now pointed to an error within the data: On several rows 3 users are not listed as "lastname, firstname" but…
Marco
  • 22,856
  • 9
  • 75
  • 124
1
vote
0 answers

Generate Sharepoint LINQ classes with SPMetal and ContentType

I have a list MyList based on ContentType MyContentType in Sharepoint. Now I try to generate the LINQ classes with SPMetal but the class for ContentType is created twice basically. XML config for SPMetal
Marc
  • 6,749
  • 9
  • 47
  • 78
0
votes
1 answer

I am trying to use SPMETAL generated model classes with Sharepoint 2016, getting errors on Microsoft.Sharepoint.Linq

After running SPMETAL.exe against my Sharepoint 2016 site, I imported the generated model to my project. I get 263 errors of the type "The type or namespace name 'Linq' does not exist in the namespace 'Microsoft.Sharepoint' (are you missing an…
JakeJ
  • 2,361
  • 5
  • 23
  • 35
0
votes
1 answer

Setting a Default Size for an ImageField in SPMeta2

I'm new to SharePoint and SPMeta2. I would like to give this ImageField that I've created with SPMeta2 a default size of 300x300 since its always too big if you let people choose their own size. public static FieldDefinition ContactPicture =…
Oldbaas
  • 1
  • 2
0
votes
1 answer

SharePoint 2010: Error Mapping to Picture Hyperlink with SPMetal

Whenever I have a column of type hyperlink with the format set for pictures, I get an error whenever there is actually a value in that column. The exception it throws is "Specified cast is not valid". My thought is that the problem is either here…
Taugenichts
  • 1,307
  • 12
  • 19
0
votes
1 answer

workflow task summary throwing error specified cast is not valid using spmetal layer

I have created share point data access layer with spmetal, everything is works fine but when I try to query with task summary list through SPMETAL it throws error I tried several techniques to cast , directly use this Iqueryable list but as I try to…
Nazish Ali Rizvi
  • 175
  • 6
  • 15
0
votes
2 answers

SPMETAL / LINQ to SharePoint Decimal Types

I've hit a pretty major snag with the entities generated by spmetal / linq to sharepoint. I am hoping someone has dealt with this before.. or maybe I am missing something obvious. Let's say we have a list with a number field. The field will be…
mikeds
  • 187
  • 3
  • 11