Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. var p =
  2. from n in x.AddressTypes
  3. where n.Name == "Billing"
  4. select n;
  5.  
  6. var p =
  7. from n in x.AddressTypes
  8. where n.Name == "Main Office"
  9. select n;
  10.  
  11. foreach(Customer c in query)
  12. {
  13. c.Country = "Wonder Land";
  14. }
  15. ctx.SubmitChanges();
  16.  
  17. Create PROCEDURE userInfoProcedure
  18. -- Add the parameters for the stored procedure here
  19. @FirstName varchar,
  20. @LastName varchar
  21. AS
  22. BEGIN
  23.  
  24. SET NOCOUNT ON;
  25.  
  26. -- Insert statements for procedure here
  27. SELECT FirstName , LastName,Age from UserInfo where FirstName=@FirstName
  28. and LastName=@FirstName
  29. END
  30. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement