aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.DAL.Local
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-01-08 15:33:28 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-01-08 15:33:28 +0200
commit6bac62d0d08cb87e8925f05a6371c76fc52af009 (patch)
treec6d78574242a1cc3c309cd210f7f4692e00680e8 /Software/Visual_Studio/Tango.DAL.Local
parentd1e8b5dc2cfa93bf042773b4bf04a0f0bfc1f53d (diff)
downloadTango-6bac62d0d08cb87e8925f05a6371c76fc52af009.tar.gz
Tango-6bac62d0d08cb87e8925f05a6371c76fc52af009.zip
Added code comments for:
DAL.Local. DAL.Remote. DragAndDrop.
Diffstat (limited to 'Software/Visual_Studio/Tango.DAL.Local')
-rw-r--r--Software/Visual_Studio/Tango.DAL.Local/Partials/LocalDB.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.DAL.Local/Partials/LocalDB.cs b/Software/Visual_Studio/Tango.DAL.Local/Partials/LocalDB.cs
index 2ad765a2b..db66f1c0a 100644
--- a/Software/Visual_Studio/Tango.DAL.Local/Partials/LocalDB.cs
+++ b/Software/Visual_Studio/Tango.DAL.Local/Partials/LocalDB.cs
@@ -7,13 +7,26 @@ using System.Threading.Tasks;
namespace Tango.DAL.Local.DB
{
+ /// <summary>
+ /// Represents an SQLite database context.
+ /// </summary>
+ /// <seealso cref="System.Data.Entity.DbContext" />
public partial class LocalDB : DbContext
{
+ /// <summary>
+ /// Initializes a new instance of the <see cref="LocalDB"/> class.
+ /// </summary>
+ /// <param name="filePath">The file path.</param>
public LocalDB(String filePath) : base(ComposeConnectionString(filePath))
{
}
+ /// <summary>
+ /// Composes the connection string.
+ /// </summary>
+ /// <param name="filePath">The file path.</param>
+ /// <returns></returns>
private static String ComposeConnectionString(String filePath)
{
return String.Format("metadata=res://*/DB.LocalADO.csdl|res://*/DB.LocalADO.ssdl|res://*/DB.LocalADO.msl;provider=System.Data.SQLite.EF6;provider connection string=\"data source={0}\"", filePath);