bsatrom avatar bsatrom committed 6a0bd3d

Removing crap we don't need

Comments (0)

Files changed (42)

Add a comment to this file

after/after/PhotoGallery.suo

Binary file removed.

after/after/_ReSharper.after/BuildScriptCache/.crc

-G‹Â<
Add a comment to this file

after/after/_ReSharper.after/BuildScriptCache/.version

Binary file removed.

Add a comment to this file

after/after/_ReSharper.after/BuildScriptCache/9/5f3eb100.dat

Binary file removed.

after/after/_ReSharper.after/ModuleIds.xml

-<Modules>
-  <Module PersistentId="AA657C36-C388-4DB1-8685-7CD008CE2391" ModuleId="after" />
-</Modules>

after/after/_ReSharper.after/NamedArguments/.crc

-r1éZ
Add a comment to this file

after/after/_ReSharper.after/NamedArguments/.version

Binary file removed.

Add a comment to this file

after/after/_ReSharper.after/NamedArguments/4/199a2445.dat

Binary file removed.

Add a comment to this file

after/after/_ReSharper.after/ProjectModel/ProjectModel.dat

Binary file removed.

Add a comment to this file

after/after/_ReSharper.after/Resources/.crc

Binary file removed.

Add a comment to this file

after/after/_ReSharper.after/Resources/.version

Binary file removed.

Add a comment to this file

after/after/_ReSharper.after/SymbolCache.bin

Binary file removed.

after/after/_ReSharper.after/TagPrefixes/.crc

-nô˜
Add a comment to this file

after/after/_ReSharper.after/TagPrefixes/.version

Binary file removed.

Add a comment to this file

after/after/_ReSharper.after/TagPrefixes/4/1760f06c.dat

Binary file removed.

after/after/_ReSharper.after/TodoCache/.crc

-m•˙ž
Add a comment to this file

after/after/_ReSharper.after/TodoCache/.version

Binary file removed.

Add a comment to this file

after/after/_ReSharper.after/TodoCache/0/3e751437.dat

Binary file removed.

Add a comment to this file

after/after/_ReSharper.after/WebsiteFileReferences/.crc

Binary file removed.

Add a comment to this file

after/after/_ReSharper.after/WebsiteFileReferences/.version

Binary file removed.

after/after/_ReSharper.after/WordIndex/.crc

-–Ą,đ
Add a comment to this file

after/after/_ReSharper.after/WordIndex/.version

Binary file removed.

Add a comment to this file

after/after/_ReSharper.after/WordIndex/0/7ecefb1f.dat

Binary file removed.

after/after/after.5.1.ReSharper.user

-<Configuration>
-  <SettingsComponent>
-    <string />
-    <integer />
-    <boolean>
-      <setting name="SolutionAnalysisEnabled">False</setting>
-    </boolean>
-  </SettingsComponent>
-  <RecentFiles>
-    <RecentFiles>
-      <File id="AA657C36-C388-4DB1-8685-7CD008CE2391/f:Global.asax.cs" caret="642" fromTop="17" />
-    </RecentFiles>
-    <RecentEdits />
-  </RecentFiles>
-  <NAntValidationSettings>
-    <NAntPath value="" />
-  </NAntValidationSettings>
-  <UnitTestRunner>
-    <Providers />
-  </UnitTestRunner>
-  <UnitTestRunnerNUnit>
-    <NUnitInstallDir IsNull="False">
-    </NUnitInstallDir>
-    <UseAddins>Never</UseAddins>
-  </UnitTestRunnerNUnit>
-</Configuration>

after/after/after/Controllers/PhotoController.cs.orig

+ďťżusing System;
+using System.Dynamic;
+using System.Net;
+using System.Web;
+using System.Web.Helpers;
+using System.Web.Mvc;
+using System.Web.UI;
+using System.Web.WebPages;
+using PhotoGallery.Repositories;
+using WebMatrix.Data;
+using WebMatrix.WebData;
+
+namespace after.Controllers
+{
+    public class PhotoController : Controller
+    {
+        public ActionResult View(int? id)
+        {
+            if (!id.HasValue)
+                return RedirectToRoute("Default");
+
+            var photoDB = new PhotoGalleryRepository();
+            var tagDB = new TagRepository();
+            var userDB = new UserRepository();
+
+            var photo = photoDB.GetPhoto(id.Value);
+            if (photo == null)
+                return HttpNotFound();
+
+            ViewBag.Title = "Photo - " + photo.FileTitle;
+
+            dynamic model = new ExpandoObject();
+            model.Photo = photo;
+            model.User = userDB.GetUserById(photo.UserId);
+            model.Gallery = photoDB.GetGallery(photo.GalleryId);
+            model.Comments = photoDB.GetCommentsByPhoto(photo.Id);
+            model.TagList = tagDB.GetTagListByPhoto(photo.Id);
+
+            return View(model);
+        }
+
+        [HttpPost]
+        public ActionResult View(int? id, string newComment)
+        {
+            if (!id.HasValue)
+                return RedirectToRoute("Default");
+
+            if (newComment.IsEmpty())
+                return RedirectToAction("View", new { id = id.Value});
+
+            var db = new PhotoGalleryRepository();
+            db.InsertComment(id.Value, newComment, WebSecurity.CurrentUserId);
+
+            return RedirectToAction("View", new { id = id.Value });
+        }
+
+        [OutputCache(Duration = 60)]
+        public ActionResult Thumbnail(int id)
+        {
+            var db = new PhotoGalleryRepository();
+            var photo = db.GetPhoto(id);
+
+            if (photo == null)
+                return HttpNotFound();
+
+            var size = Request["size"] ?? "";
+
+            int width;
+            int height;
+            switch (size.ToUpperInvariant())
+            {
+                case "":
+                case "SMALL":
+                    width = 200;
+                    height = 200;
+                    break;
+                case "MEDIUM":
+                    width = 400;
+                    height = 300;
+                    break;
+                case "LARGE":
+                    width = 625;
+                    height = 625;
+                    break;
+                default:
+                    return new HttpStatusCodeResult(400);
+            }
+
+            var image = new WebImage(photo.FileContents);
+            image.Resize(width, height).Write();
+
+            return null;
+        }
+
+        [OutputCache(Duration = 60)]
+        public ActionResult Full(int? id)
+        {
+            if (!id.HasValue)
+                return RedirectToAction("View", new { id = id.Value });
+
+            var db = new PhotoGalleryRepository();
+            var photo = db.GetPhoto(id.Value);
+            if (photo == null)
+                return HttpNotFound();
+
+            Response.AppendHeader("Content-Disposition", String.Format("attachment; filename={0}", HttpUtility.UrlPathEncode(photo.FileTitle + photo.FileExtension)));
+            new WebImage(photo.FileContents).Write();
+
+            return null;
+        }
+    }
+}

after/after/after/Controllers/TagController.cs.orig

+ďťżusing System.Web.Mvc;
+using PhotoGallery.Repositories;
+using System.Dynamic;
+using System.Web.Helpers;
+
+namespace after.Controllers
+{
+    public class TagController : Controller
+    {
+        public ActionResult Default()
+        {
+            ViewBag.Title = "View All Tags";
+
+            var repository = new TagRepository();
+            var tagsList = repository.GetTagList();
+
+            return View(tagsList);
+        }
+
+        [OutputCache(Duration = 60)]
+        public ActionResult Thumbnail(string id)
+        {
+            var repository = new TagRepository();
+            var tag = repository.GetTag(id);
+            var photoList = repository.GetPhotoList(id);
+
+            if (tag != null && photoList.Count > 0)
+            {
+                using (MultiThumbnailGenerator generator = new MultiThumbnailGenerator())
+                {
+                    foreach (var photo in photoList)
+                    {
+                        using (var imageStream = new System.IO.MemoryStream(photo.FileContents))
+                        {
+                            using (var image = System.Drawing.Image.FromStream(imageStream))
+                            {
+                                generator.AddImage(image);
+                            }
+                        }
+                    }
+
+                    using (var outStream = new System.IO.MemoryStream())
+                    {
+                        generator.WritePngToStream(outStream);
+                        var image = new WebImage(outStream);
+                        image.Write();
+                    }
+                }
+
+                return null;
+            }
+            
+            return Redirect("~/Content/Images/gallery-empty.png");
+        }
+
+        public ActionResult View(string id)
+        {
+            ViewBag.Title = "View Tag - " + id;
+
+            dynamic model = new ExpandoObject();
+            model.TagName = id;
+
+            var repository = new TagRepository();
+            model.Photos = repository.GetPhotos(id);
+            model.SimilarTags = repository.GetSimilarTags(id);
+            
+            return View(model);
+        }
+    }
+}

after/after/after/PhotoGallery.csproj.user

-ďťż<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <ProjectView>ProjectFiles</ProjectView>
-  </PropertyGroup>
-  <ProjectExtensions>
-    <VisualStudio>
-      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
-        <WebProjectProperties>
-          <StartPageUrl>
-          </StartPageUrl>
-          <StartAction>CurrentPage</StartAction>
-          <AspNetDebugging>True</AspNetDebugging>
-          <SilverlightDebugging>False</SilverlightDebugging>
-          <NativeDebugging>False</NativeDebugging>
-          <SQLDebugging>False</SQLDebugging>
-          <ExternalProgram>
-          </ExternalProgram>
-          <StartExternalURL>
-          </StartExternalURL>
-          <StartCmdLineArguments>
-          </StartCmdLineArguments>
-          <StartWorkingDirectory>
-          </StartWorkingDirectory>
-          <EnableENC>False</EnableENC>
-          <AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
-        </WebProjectProperties>
-      </FlavorProperties>
-    </VisualStudio>
-  </ProjectExtensions>
-</Project>

after/after/after/Repositories/PhotoGalleryRepository.cs.orig

+using System;
+using System.Collections.Generic;
+using System.Linq;
+using WebMatrix.Data;
+
+namespace PhotoGallery.Repositories
+{
+    public class PhotoGalleryRepository
+    {
+        readonly Database _database;
+        public PhotoGalleryRepository()
+        {
+            _database = Database.Open("PhotoGallery");
+        }
+
+        public IList<dynamic> GetGalleryList()
+        {
+            return _database.Query(@"SELECT Galleries.Id, Galleries.Name, COUNT(Photos.Id) AS PhotoCount
+                               FROM Galleries LEFT OUTER JOIN Photos ON Galleries.Id = Photos.GalleryId
+                               GROUP BY Galleries.Id, Galleries.Name").ToList();
+        }
+
+        public int GetGalleryCount(string galleryName)
+        {
+            return _database.QueryValue("SELECT COUNT(*) FROM Galleries WHERE LOWER(Name) = LOWER(@0)", galleryName);
+        }
+
+        public int CreateGallery(string galleryName)
+        {
+            _database.Execute("INSERT INTO Galleries (Name) VALUES (@0)", galleryName);
+
+            return (int)_database.GetLastInsertId();
+        }
+
+        public dynamic GetGallery(int galleryId)
+        {
+            return _database.QuerySingle("SELECT * FROM Galleries WHERE Id = @0", galleryId);
+        }
+
+        public IList<dynamic> GetTopPhotosForGallery(int galleryId)
+        {
+            return _database.Query("SELECT TOP(3) FileContents, UploadDate FROM Photos WHERE GalleryId = @0 ORDER BY UploadDate DESC", galleryId).ToList();
+        }
+
+        public IList<dynamic> GetPhotosForGallery(int galleryId)
+        {
+            return _database.Query("SELECT Id, FileTitle FROM Photos WHERE GalleryId = @0", galleryId).ToList();
+        }
+
+        public int InsertImage(int galleryId, int userId, string fileTitle, 
+            string fileExtension, string imageFormat, int length, byte[] image)
+        {
+            _database.Execute(@"INSERT INTO Photos
+                    (GalleryId, UserId, Description, FileTitle, FileExtension, 
+                    ContentType, FileSize, UploadDate, FileContents) VALUES 
+                    (@0, @1, @2, @3, @4, @5, @6, @7, @8)", 
+                    galleryId, userId, "", fileTitle, fileExtension,
+                    imageFormat, length, DateTime.Now, image);
+
+            return (int)_database.GetLastInsertId();
+        }
+
+        public dynamic GetPhoto(int photoId)
+        {
+            return _database.QuerySingle("SELECT * FROM Photos WHERE Id = @0", photoId);
+        }
+
+        public void InsertComment(int id, string newComment, int userId)
+        {
+            _database.Execute(@"INSERT INTO Comments (PhotoId, CommentDate, UserId, CommentText) 
+                    VALUES (@0, @1, @2, @3)", id, DateTime.Now, userId, newComment);
+        }
+
+        public IList<dynamic> GetCommentsByPhoto(int id)
+        {
+            return _database.Query(@"SELECT * FROM Comments INNER JOIN UserProfiles
+                              ON Comments.UserId = UserProfiles.UserId WHERE PhotoId = @0 
+                              ORDER BY Comments.CommentDate", id).ToList();
+        }
+    }
+}
Add a comment to this file

after/after/after/bin/Microsoft.Web.Helpers.dll

Binary file removed.

Add a comment to this file

after/after/after/bin/UserVoiceApi.dll

Binary file removed.

Add a comment to this file

after/after/after/bin/WebMatrix.Data.dll

Binary file removed.

after/after/after/bin/WebMatrix.Data.xml

-ďťż<?xml version="1.0" encoding="utf-8"?>
-<doc>
-  <assembly>
-    <name>WebMatrix.Data</name>
-  </assembly>
-  <members>
-    <member name="T:WebMatrix.Data.ConnectionEventArgs"></member>
-    <member name="M:WebMatrix.Data.ConnectionEventArgs.#ctor(System.Data.Common.DbConnection)"></member>
-    <member name="P:WebMatrix.Data.ConnectionEventArgs.Connection"></member>
-    <member name="T:WebMatrix.Data.Database">
-      <summary>Provides methods and properties that are used to access and manage data.</summary>
-    </member>
-    <member name="M:WebMatrix.Data.Database.Close">
-      <summary>Closes an open database.</summary>
-    </member>
-    <member name="P:WebMatrix.Data.Database.Connection">
-      <summary>Gets the current connection to a database.</summary>
-      <returns>The connection.</returns>
-    </member>
-    <member name="E:WebMatrix.Data.Database.ConnectionOpened">
-      <summary>Occurs when a new database connection is opened by a <see cref="T:WebMatrix.Data.Database" /> instance.</summary>
-    </member>
-    <member name="M:WebMatrix.Data.Database.Dispose">
-      <summary>Releases all resources used by a <see cref="T:WebMatrix.Data.Database" /> instance.</summary>
-    </member>
-    <member name="M:WebMatrix.Data.Database.Dispose(System.Boolean)">
-      <summary>Releases the unmanaged resources used by a <see cref="T:WebMatrix.Data.Database" /> instance and optionally releases the managed resources.</summary>
-      <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
-    </member>
-    <member name="M:WebMatrix.Data.Database.Execute(System.String,System.Object[])">
-      <summary>Executes a SQL statement using optional parameters.</summary>
-      <returns>The count of records affected by the SQL statement.</returns>
-      <param name="commandText">The SQL statement to execute.</param>
-      <param name="args">(Optional) Parameters to pass to the SQL statement.</param>
-    </member>
-    <member name="M:WebMatrix.Data.Database.GetLastInsertId">
-      <summary>Returns the identity column of the most recently inserted row.</summary>
-      <returns>The ID of the most recently inserted row.</returns>
-    </member>
-    <member name="M:WebMatrix.Data.Database.Open(System.String)">
-      <summary>Opens either the specified database file or the database that is specified using a named connection string from the Web.config file.</summary>
-      <returns>The database instance.</returns>
-      <param name="name">The name or connection string of the database.</param>
-    </member>
-    <member name="M:WebMatrix.Data.Database.OpenConnectionString(System.String)">
-      <summary>Opens a connection to a database using the specified connection string.</summary>
-      <returns>The database instance.</returns>
-      <param name="connectionString">The connection string that contains information that is used to connect to a database.</param>
-    </member>
-    <member name="M:WebMatrix.Data.Database.OpenConnectionString(System.String,System.String)">
-      <summary>Opens a database using a connection string and the specified provider.</summary>
-      <returns>The database instance.</returns>
-      <param name="connectionString">The connection string that contains information that is used to connect to a database.</param>
-      <param name="providerName">(Optional) The name of the .NET Framework data provider to use to connect to the data source.</param>
-    </member>
-    <member name="M:WebMatrix.Data.Database.Query(System.String,System.Object[])">
-      <summary>Queries the database using a SQL statement (optionally passing parameters) and returns the results. </summary>
-      <returns>The results of the query.</returns>
-      <param name="commandText">The SQL statement to execute.</param>
-      <param name="parameters">(Optional) Parameters to pass to the SQL statement.</param>
-    </member>
-    <member name="M:WebMatrix.Data.Database.QuerySingle(System.String,System.Object[])">
-      <summary>Executes a SQL statement (optionally passing parameters) and returns a single record.</summary>
-      <returns>The single database record returned by the SQL statement.</returns>
-      <param name="commandText">The SQL statement to execute.</param>
-      <param name="args">(Optional) Parameters to pass to the SQL statement.</param>
-    </member>
-    <member name="M:WebMatrix.Data.Database.QueryValue(System.String,System.Object[])">
-      <summary>Executes a SQL statement (optionally passing parameters) and returns a single (scalar) value.</summary>
-      <returns>The value returned by the SQL statement.</returns>
-      <param name="commandText">The  SQL statement to execute.</param>
-      <param name="args">(Optional) Parameters to pass to the SQL statement.</param>
-    </member>
-    <member name="T:WebMatrix.Data.DynamicRecord"></member>
-    <member name="P:WebMatrix.Data.DynamicRecord.Columns"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.GetDynamicMemberNames"></member>
-    <member name="P:WebMatrix.Data.DynamicRecord.Item(System.Int32)"></member>
-    <member name="P:WebMatrix.Data.DynamicRecord.Item(System.String)"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.System#ComponentModel#ICustomTypeDescriptor#GetAttributes"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.System#ComponentModel#ICustomTypeDescriptor#GetClassName"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.System#ComponentModel#ICustomTypeDescriptor#GetComponentName"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.System#ComponentModel#ICustomTypeDescriptor#GetConverter"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.System#ComponentModel#ICustomTypeDescriptor#GetDefaultEvent"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.System#ComponentModel#ICustomTypeDescriptor#GetDefaultProperty"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.System#ComponentModel#ICustomTypeDescriptor#GetEditor(System.Type)"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.System#ComponentModel#ICustomTypeDescriptor#GetEvents"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.System#ComponentModel#ICustomTypeDescriptor#GetEvents(System.Attribute[])"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.System#ComponentModel#ICustomTypeDescriptor#GetProperties"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.System#ComponentModel#ICustomTypeDescriptor#GetProperties(System.Attribute[])"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.System#ComponentModel#ICustomTypeDescriptor#GetPropertyOwner(System.ComponentModel.PropertyDescriptor)"></member>
-    <member name="M:WebMatrix.Data.DynamicRecord.TryGetMember(System.Dynamic.GetMemberBinder,System.Object@)"></member>
-  </members>
-</doc>
Add a comment to this file

after/after/after/bin/WebMatrix.WebData.dll

Binary file removed.

after/after/after/bin/WebMatrix.WebData.xml

-ďťż<?xml version="1.0" encoding="utf-8"?>
-<doc>
-  <assembly>
-    <name>WebMatrix.WebData</name>
-  </assembly>
-  <members>
-    <member name="T:WebMatrix.WebData.ExtendedMembershipProvider"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.#ctor"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.ConfirmAccount(System.String)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.CreateAccount(System.String,System.String)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.CreateAccount(System.String,System.String,System.Boolean)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.CreateUserAndAccount(System.String,System.String)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.CreateUserAndAccount(System.String,System.String,System.Boolean)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.CreateUserAndAccount(System.String,System.String,System.Boolean,System.Collections.Generic.IDictionary{System.String,System.Object})"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.CreateUserAndAccount(System.String,System.String,System.Collections.Generic.IDictionary{System.String,System.Object})"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.DeleteAccount(System.String)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.GeneratePasswordResetToken(System.String)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.GeneratePasswordResetToken(System.String,System.Int32)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.GetCreateDate(System.String)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.GetLastPasswordFailureDate(System.String)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.GetPasswordChangedDate(System.String)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.GetPasswordFailuresSinceLastSuccess(System.String)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.GetUserIdFromPasswordResetToken(System.String)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.IsConfirmed(System.String)"></member>
-    <member name="M:WebMatrix.WebData.ExtendedMembershipProvider.ResetPasswordWithToken(System.String,System.String)"></member>
-    <member name="T:WebMatrix.WebData.FormsAuthenticationSettings"></member>
-    <member name="F:WebMatrix.WebData.FormsAuthenticationSettings.DefaultLoginUrl"></member>
-    <member name="F:WebMatrix.WebData.FormsAuthenticationSettings.LoginUrlKey"></member>
-    <member name="T:WebMatrix.WebData.PreApplicationStartCode"></member>
-    <member name="M:WebMatrix.WebData.PreApplicationStartCode.Start"></member>
-    <member name="T:WebMatrix.WebData.SimpleMembershipProvider"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.#ctor"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.#ctor(System.Web.Security.MembershipProvider)"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.ApplicationName"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.ChangePassword(System.String,System.String,System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.ChangePasswordQuestionAndAnswer(System.String,System.String,System.String,System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.ConfirmAccount(System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.CreateAccount(System.String,System.String,System.Boolean)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.CreateUser(System.String,System.String,System.String,System.String,System.String,System.Boolean,System.Object,System.Web.Security.MembershipCreateStatus@)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.CreateUserAndAccount(System.String,System.String,System.Boolean,System.Collections.Generic.IDictionary{System.String,System.Object})"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.DeleteAccount(System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.DeleteUser(System.String,System.Boolean)"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.EnablePasswordReset"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.EnablePasswordRetrieval"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.FindUsersByEmail(System.String,System.Int32,System.Int32,System.Int32@)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.FindUsersByName(System.String,System.Int32,System.Int32,System.Int32@)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GeneratePasswordResetToken(System.String,System.Int32)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GetAllUsers(System.Int32,System.Int32,System.Int32@)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GetCreateDate(System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GetLastPasswordFailureDate(System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GetNumberOfUsersOnline"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GetPassword(System.String,System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GetPasswordChangedDate(System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GetPasswordFailuresSinceLastSuccess(System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GetUser(System.Object,System.Boolean)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GetUser(System.String,System.Boolean)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GetUserId(System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GetUserIdFromPasswordResetToken(System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.GetUserNameByEmail(System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.Initialize(System.String,System.Collections.Specialized.NameValueCollection)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.IsConfirmed(System.String)"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.MaxInvalidPasswordAttempts"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.MinRequiredNonAlphanumericCharacters"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.MinRequiredPasswordLength"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.PasswordAttemptWindow"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.PasswordFormat"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.PasswordStrengthRegularExpression"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.RequiresQuestionAndAnswer"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.RequiresUniqueEmail"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.ResetPassword(System.String,System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.ResetPasswordWithToken(System.String,System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.UnlockUser(System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.UpdateUser(System.Web.Security.MembershipUser)"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.UserIdColumn"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.UserNameColumn"></member>
-    <member name="P:WebMatrix.WebData.SimpleMembershipProvider.UserTableName"></member>
-    <member name="M:WebMatrix.WebData.SimpleMembershipProvider.ValidateUser(System.String,System.String)"></member>
-    <member name="T:WebMatrix.WebData.SimpleRoleProvider">
-      <summary>Provides basic role-management methods.</summary>
-    </member>
-    <member name="M:WebMatrix.WebData.SimpleRoleProvider.#ctor"></member>
-    <member name="M:WebMatrix.WebData.SimpleRoleProvider.#ctor(System.Web.Security.RoleProvider)"></member>
-    <member name="M:WebMatrix.WebData.SimpleRoleProvider.AddUsersToRoles(System.String[],System.String[])">
-      <summary>Adds the specified user names to the specified roles.</summary>
-      <param name="usernames">The user names to add.</param>
-      <param name="roleNames">The roles to add the names to.</param>
-    </member>
-    <member name="P:WebMatrix.WebData.SimpleRoleProvider.ApplicationName"></member>
-    <member name="M:WebMatrix.WebData.SimpleRoleProvider.CreateRole(System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleRoleProvider.DeleteRole(System.String,System.Boolean)"></member>
-    <member name="M:WebMatrix.WebData.SimpleRoleProvider.FindUsersInRole(System.String,System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleRoleProvider.GetAllRoles"></member>
-    <member name="M:WebMatrix.WebData.SimpleRoleProvider.GetRolesForUser(System.String)"></member>
-    <member name="M:WebMatrix.WebData.SimpleRoleProvider.GetUsersInRole(System.String)">
-      <summary>Returns the user names that are associated with the specified role.</summary>
-      <returns>The user names for the role.</returns>
-      <param name="roleName">The name of the role.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.SimpleRoleProvider.IsUserInRole(System.String,System.String)">
-      <summary>Returns a value that indicates whether a specified user is in a specified role.</summary>
-      <returns>true if the user is in the role; otherwise, false. </returns>
-      <param name="username">The user name.</param>
-      <param name="roleName">The name of the role.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.SimpleRoleProvider.RemoveUsersFromRoles(System.String[],System.String[])"></member>
-    <member name="M:WebMatrix.WebData.SimpleRoleProvider.RoleExists(System.String)">
-      <summary>Returns a value that indicates whether a specified role exists.</summary>
-      <returns>true if the role exists; otherwise, false.</returns>
-      <param name="roleName">The name of the role.</param>
-    </member>
-    <member name="P:WebMatrix.WebData.SimpleRoleProvider.UserIdColumn"></member>
-    <member name="P:WebMatrix.WebData.SimpleRoleProvider.UserNameColumn"></member>
-    <member name="P:WebMatrix.WebData.SimpleRoleProvider.UserTableName"></member>
-    <member name="T:WebMatrix.WebData.WebSecurity">
-      <summary>Provides security and authentication features for ASP.NET Razor pages.</summary>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.ChangePassword(System.String,System.String,System.String)">
-      <summary>Changes the password for the specified user.</summary>
-      <returns>true if the password is successfully changed; otherwise, false.</returns>
-      <param name="userName">The user name.</param>
-      <param name="currentPassword">The current password for the user.</param>
-      <param name="newPassword">The new password.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.ConfirmAccount(System.String)">
-      <summary>Gets a value that indicates whether an account has been confirmed as a valid account with the provider.</summary>
-      <returns>true if the account is confirmed; otherwise, false.</returns>
-      <param name="accountConfirmationToken">A confirmation message to pass to the authentication provider.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.CreateAccount(System.String,System.String,System.Boolean)">
-      <summary>Creates a new user account with the specified user name and password.</summary>
-      <returns>A token from the provider that created the account.</returns>
-      <param name="userName">The user name.</param>
-      <param name="password">The password for the user.</param>
-      <param name="requireConfirmationToken">(Optional) true to specify that the account must be confirmed; otherwise, false. The default is false. </param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.CreateUserAndAccount(System.String,System.String,System.Object,System.Boolean)">
-      <summary>Creates a new user and a new user account.</summary>
-      <returns>A token from the provider that created the user and the account.</returns>
-      <param name="userName">The user name.</param>
-      <param name="password">The password for the user.</param>
-      <param name="propertyValues">(Optional) A dictionary that contains additional user attributes. The default is null.</param>
-      <param name="requireConfirmationToken">(Optional) true to specify that the account must be confirmed; otherwise, false. The default is false.</param>
-    </member>
-    <member name="P:WebMatrix.WebData.WebSecurity.CurrentUserId">
-      <summary>Gets the ID for the current user.</summary>
-      <returns>The ID for the current user.</returns>
-    </member>
-    <member name="P:WebMatrix.WebData.WebSecurity.CurrentUserName">
-      <summary>Gets the user name for the current user.</summary>
-      <returns>The name of the current user.</returns>
-    </member>
-    <member name="F:WebMatrix.WebData.WebSecurity.EnableSimpleMembershipKey"></member>
-    <member name="M:WebMatrix.WebData.WebSecurity.GeneratePasswordResetToken(System.String,System.Int32)">
-      <summary>Generates a password reset token that can be sent a user in email.</summary>
-      <returns>A token from the provider to send to the user.</returns>
-      <param name="userName">The user name.</param>
-      <param name="tokenExpirationInMinutesFromNow">(Optional) The time in minutes until the password reset token expires. The default is 1440 (24 hours).</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.GetCreateDate(System.String)"></member>
-    <member name="M:WebMatrix.WebData.WebSecurity.GetLastPasswordFailureDate(System.String)"></member>
-    <member name="M:WebMatrix.WebData.WebSecurity.GetPasswordChangedDate(System.String)"></member>
-    <member name="M:WebMatrix.WebData.WebSecurity.GetPasswordFailuresSinceLastSuccess(System.String)"></member>
-    <member name="M:WebMatrix.WebData.WebSecurity.GetUserId(System.String)">
-      <summary>Gets the ID for a user based on the user name.</summary>
-      <returns>The ID of the logged-in user.</returns>
-      <param name="userName">The user name.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.GetUserIdFromPasswordResetToken(System.String)"></member>
-    <member name="P:WebMatrix.WebData.WebSecurity.HasUserId"></member>
-    <member name="M:WebMatrix.WebData.WebSecurity.InitializeDatabaseConnection(System.String,System.String,System.String,System.String,System.Boolean)">
-      <summary>Connects to a database that contains user information.</summary>
-      <param name="connectionStringName">The name of the connection string.</param>
-      <param name="userTableName">The name of the database table that contains user information.</param>
-      <param name="userIdColumn">The name of the database column that contains user IDs.</param>
-      <param name="userNameColumn">The name of the database column that contains user names.</param>
-      <param name="autoCreateTables">true to indicate that tables should be created automatically; false to indicate that tables should not be created automatically.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.InitializeDatabaseConnection(System.String,System.String,System.String,System.String,System.String,System.Boolean)">
-      <summary>Connects to a database that contains user information using the specified membership or role provider.</summary>
-      <param name="connectionString">The name of the connection string.</param>
-      <param name="providerName">The name of the membership provider or role provider.</param>
-      <param name="userTableName">The name of the database table that contains user information.</param>
-      <param name="userIdColumn">The field that contains user identifier numbers.</param>
-      <param name="userNameColumn">The field that contains user names.</param>
-      <param name="autoCreateTables">true to indicate that tables should be created automatically; false to indicate that tables should not be created automatically.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.IsAccountLockedOut(System.String,System.Int32,System.Int32)"></member>
-    <member name="M:WebMatrix.WebData.WebSecurity.IsAccountLockedOut(System.String,System.Int32,System.TimeSpan)"></member>
-    <member name="P:WebMatrix.WebData.WebSecurity.IsAuthenticated">
-      <summary>Gets the authentication status of the current user.</summary>
-      <returns>true if the current user is logged in; otherwise, false. The default is false.</returns>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.IsConfirmed(System.String)">
-      <summary>Returns a value that indicates whether the logged-in user has been confirmed by the provider.</summary>
-      <returns>true if the user is confirmed; otherwise, false.</returns>
-      <param name="userName">The user name.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.IsCurrentUser(System.String)">
-      <summary>Returns a value that indicates whether the user name of the logged-in user matches the specified user name.</summary>
-      <returns>true if the logged-in user name matches <paramref name="userName" />; otherwise, false.</returns>
-      <param name="userName">The user name to compare the logged-in user name to.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.Login(System.String,System.String,System.Boolean)">
-      <summary>Logs the user in.</summary>
-      <returns>true if the user was logged in; otherwise false. </returns>
-      <param name="userName">The user name.</param>
-      <param name="password">The password for a user.</param>
-      <param name="persistCookie">(Optional) true to specify that the authentication token in the cookie should be persisted beyond the current session; otherwise false. The default is false.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.Logout">
-      <summary>Logs the user out.</summary>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.RequireAuthenticatedUser">
-      <summary>If the user is not authenticated, sets the HTTP status to 401 (Unauthorized).</summary>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.RequireRoles(System.String[])">
-      <summary>If the current user is not a member of one of the specified roles, sets the HTTP status code to 401 (Unauthorized).</summary>
-      <param name="roles">The roles that are authorized to access a page.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.RequireUser(System.Int32)">
-      <summary>If the current user does not match the specified user ID, sets the HTTP status to 401 (Unauthorized).</summary>
-      <param name="userId">The ID of the user to compare.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.RequireUser(System.String)">
-      <summary>If the current user does not match the specified user name, sets the HTTP status to 401 (Unauthorized).</summary>
-      <param name="userName">The name of the user to compare.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.ResetPassword(System.String,System.String)">
-      <summary>Changes a password.</summary>
-      <returns>true if the password was changed; otherwise, false.</returns>
-      <param name="passwordResetToken">A password reset token.</param>
-      <param name="newPassword">The new password.</param>
-    </member>
-    <member name="M:WebMatrix.WebData.WebSecurity.UserExists(System.String)">
-      <summary>Returns a value that indicates whether the specified user exists in the membership provider database.</summary>
-      <returns>true if the membership provider found <paramref name="username" />; otherwise, false. </returns>
-      <param name="userName">The user name.</param>
-    </member>
-  </members>
-</doc>
Add a comment to this file

after/after/after/bin/after.dll

Binary file removed.

Add a comment to this file

after/after/after/bin/after.pdb

Binary file removed.

Add a comment to this file

after/after/after/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache

Binary file removed.

after/after/after/obj/Debug/PhotoGallery.csproj.FileListAbsolute.txt

-C:\source\wm2mvc\after\after\after\obj\Debug\ResolveAssemblyReference.cache
-C:\source\wm2mvc\after\after\after\obj\Debug\after.dll
-C:\source\wm2mvc\after\after\after\bin\after.dll
-C:\source\wm2mvc\after\after\after\bin\after.pdb
-C:\source\wm2mvc\after\after\after\bin\Microsoft.Web.Helpers.dll
-C:\source\wm2mvc\after\after\after\bin\UserVoiceApi.dll
-C:\source\wm2mvc\after\after\after\bin\WebMatrix.Data.dll
-C:\source\wm2mvc\after\after\after\bin\WebMatrix.WebData.dll
-C:\source\wm2mvc\after\after\after\bin\WebMatrix.Data.xml
-C:\source\wm2mvc\after\after\after\bin\WebMatrix.WebData.xml
-C:\source\wm2mvc\after\after\after\obj\Debug\after.pdb
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\after.dll
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\after.pdb
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\Microsoft.Web.Helpers.dll
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\UserVoiceApi.dll
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\WebMatrix.Data.dll
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\WebMatrix.WebData.dll
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\WebMatrix.Data.xml
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\WebMatrix.WebData.xml
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\obj\Debug\ResolveAssemblyReference.cache
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\obj\Debug\after.dll
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\obj\Debug\after.pdb
Add a comment to this file

after/after/after/obj/Debug/ResolveAssemblyReference.cache

Binary file removed.

after/after/after/obj/Debug/after.csproj.FileListAbsolute.txt

-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\after.dll
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\after.pdb
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\UserVoiceApi.dll
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\WebMatrix.Data.dll
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\WebMatrix.Data.xml
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\obj\Debug\ResolveAssemblyReference.cache
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\obj\Debug\after.dll
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\obj\Debug\after.pdb
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\WebMatrix.WebData.dll
-C:\Development\MSDNMag-WebPagesToMVC\after\after\after\bin\WebMatrix.WebData.xml
Add a comment to this file

after/after/after/obj/Debug/after.dll

Binary file removed.

Add a comment to this file

after/after/after/obj/Debug/after.pdb

Binary file removed.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.