Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string query = "select value obj from Entities.Class as obj " +
- "where obj.Property = @Value";
- ObjectQuery<Class> oQuery = new ObjectQuery<Class>(query, EntityContext.Instance);
- oQuery.Parameters.Add(new ObjectParameter("Value", someVariable));
- int count = oQuery.Count();
- int count = oQuery.Count();
Add Comment
Please, Sign In to add comment