Settings Page (in work)

Fixing Web hosting in Azure
This commit is contained in:
2011-03-30 02:25:27 +03:00
parent 84642c37ad
commit 833083ca0e
21 changed files with 414 additions and 105 deletions
@@ -12,11 +12,16 @@ namespace MyFriendsAround.Data.BLL
public static class FriendsRepository
{
public static List<Friend> GetFriends()
{
{
return GetFriends(0, 50);
}
public static List<Friend> GetFriends(int skip, int take)
{
using (MyFriendsModelContainer ctx = new MyFriendsModelContainer())
{
ctx.ContextOptions.ProxyCreationEnabled = false;
List<Friend> list = ctx.Friends.ToList();
List<Friend> list = ctx.Friends.OrderByDescending(f=> f.LastUpdated).Skip(skip).Take(take).ToList();
list.ForEach((f) =>
{
SqlGeometry geom = SqlGeometry.Parse(f.LocationStr);
@@ -59,5 +64,12 @@ namespace MyFriendsAround.Data.BLL
return success;
}
}
public static bool UpdatePicture(string userId, byte[] userPicture)
{
return false;
}
}
}
@@ -47,6 +47,7 @@
<ItemGroup>
<Reference Include="Microsoft.SqlServer.Types, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<HintPath>..\Libs\Sql\Microsoft.SqlServer.Types.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />