PageRenderTime 38ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/ImageData/Generated/Context.cs

https://bitbucket.org/mahalowe/bvcms
C# | 85 lines | 62 code | 23 blank | 0 comment | 0 complexity | cb41dc181131da2736d728dfe2c50e18 MD5 | raw file
Possible License(s): CC-BY-SA-3.0, Apache-2.0, BSD-3-Clause, LGPL-2.1, MPL-2.0-no-copyleft-exception, AGPL-3.0
  1. using System;
  2. using System.Data.Linq;
  3. using System.Data.Linq.Mapping;
  4. using System.Data;
  5. using System.Collections.Generic;
  6. using System.Reflection;
  7. using System.Linq;
  8. using System.Linq.Expressions;
  9. using System.ComponentModel;
  10. namespace ImageData
  11. {
  12. [DatabaseAttribute(Name="CMSImage")]
  13. public partial class CMSImageDataContext : DataContext
  14. {
  15. private static MappingSource mappingSource = new AttributeMappingSource();
  16. #region Extensibility Method Definitions
  17. partial void OnCreated();
  18. partial void InsertImage(Image instance);
  19. partial void UpdateImage(Image instance);
  20. partial void DeleteImage(Image instance);
  21. #endregion
  22. public CMSImageDataContext() :
  23. base(System.Configuration.ConfigurationManager.ConnectionStrings["CMSImage"].ConnectionString, mappingSource)
  24. {
  25. OnCreated();
  26. }
  27. public CMSImageDataContext(string connection) :
  28. base(connection, mappingSource)
  29. {
  30. OnCreated();
  31. }
  32. public CMSImageDataContext(IDbConnection connection) :
  33. base(connection, mappingSource)
  34. {
  35. OnCreated();
  36. }
  37. public CMSImageDataContext(string connection, MappingSource mappingSource) :
  38. base(connection, mappingSource)
  39. {
  40. OnCreated();
  41. }
  42. public CMSImageDataContext(IDbConnection connection, MappingSource mappingSource) :
  43. base(connection, mappingSource)
  44. {
  45. OnCreated();
  46. }
  47. #region Tables
  48. public Table< Image> Images
  49. {
  50. get { return this.GetTable< Image>(); }
  51. }
  52. #endregion
  53. #region Views
  54. #endregion
  55. #region Table Functions
  56. #endregion
  57. #region Scalar Functions
  58. #endregion
  59. #region Stored Procedures
  60. #endregion
  61. }
  62. }