Skip to content

Commit

Permalink
Added WinPhone solution and project for ORM base (no implementation yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctacke committed Sep 8, 2010
1 parent a9ce7f3 commit 9905dfe
Show file tree
Hide file tree
Showing 7 changed files with 183 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OpenNETCF.ORM.Shared/OpenNETCF.ORM.Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

// see http://modland.nascom.nasa.gov/browse/calendar.html

[assembly: AssemblyVersion("1.0.10250.0")]
[assembly: AssemblyVersion("1.0.10251.0")]
29 changes: 29 additions & 0 deletions OpenNETCF.ORM.WinPhone.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenNETCF.ORM.WinPhone", "OpenNETCF.ORM\OpenNETCF.ORM.WinPhone.csproj", "{C52EC860-6119-4131-815B-4305DB3BFA95}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://tfs.codeplex.com/tfs/tfs01
SccLocalPath0 = .
SccProjectUniqueName1 = OpenNETCF.ORM\\OpenNETCF.ORM.WinPhone.csproj
SccProjectName1 = OpenNETCF.ORM
SccLocalPath1 = OpenNETCF.ORM
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C52EC860-6119-4131-815B-4305DB3BFA95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C52EC860-6119-4131-815B-4305DB3BFA95}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C52EC860-6119-4131-815B-4305DB3BFA95}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C52EC860-6119-4131-815B-4305DB3BFA95}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
10 changes: 10 additions & 0 deletions OpenNETCF.ORM.WinPhone.vssscc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
}
2 changes: 1 addition & 1 deletion OpenNETCF.ORM/Attributes/ReferenceAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ReferenceAttribute(Type referenceEntityType, string referenceField)
public bool Equals(ReferenceAttribute other)
{
if (!this.ReferenceEntityType.Equals(other.ReferenceEntityType)) return false;
return string.Compare(this.ReferenceField, other.ReferenceField, true) == 0;
return string.Compare(this.ReferenceField, other.ReferenceField, StringComparison.InvariantCultureIgnoreCase) == 0;
}

public override int GetHashCode()
Expand Down
46 changes: 46 additions & 0 deletions OpenNETCF.ORM/DbType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace System.Data
{
#if WINDOWS_PHONE
public enum DbType
{
AnsiString = 0,
Binary = 1,
Byte = 2,
Boolean = 3,
Currency = 4,
Date = 5,
DateTime = 6,
Decimal = 7,
Double = 8,
Guid = 9,
Int16 = 10,
Int32 = 11,
Int64 = 12,
Object = 13,
SByte = 14,
Single = 15,
String = 16,
Time = 17,
UInt16 = 18,
UInt32 = 19,
UInt64 = 20,
VarNumeric = 21,
AnsiStringFixedLength = 22,
StringFixedLength = 23,
Xml = 25,
DateTime2 = 26,
DateTimeOffset = 27,
}
#endif
}
86 changes: 86 additions & 0 deletions OpenNETCF.ORM/OpenNETCF.ORM.WinPhone.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{C52EC860-6119-4131-815B-4305DB3BFA95}</ProjectGuid>
<ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OpenNETCF.ORM.WinPhone</RootNamespace>
<AssemblyName>OpenNETCF.ORM.WinPhone</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<TargetFrameworkProfile>WindowsPhone</TargetFrameworkProfile>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<SilverlightApplication>false</SilverlightApplication>
<ValidateXaml>true</ValidateXaml>
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Bin\Debug</OutputPath>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Bin\Release</OutputPath>
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System.Windows" />
<Reference Include="system" />
<Reference Include="System.Core" />
<Reference Include="System.Xml" />
<Reference Include="System.Net" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\OpenNETCF.ORM.Shared\OpenNETCF.ORM.Version.cs">
<Link>Properties\OpenNETCF.ORM.Version.cs</Link>
</Compile>
<Compile Include="Attributes\EntityAttribute.cs" />
<Compile Include="Attributes\FieldAttribute.cs" />
<Compile Include="Attributes\FieldAttributeCollection.cs" />
<Compile Include="Attributes\ReferenceAttribute.cs" />
<Compile Include="Attributes\ReferenceAttributeCollection.cs" />
<Compile Include="DataStore.cs" />
<Compile Include="DbType.cs" />
<Compile Include="Entity.cs" />
<Compile Include="EntityInfo.cs" />
<Compile Include="EntityInfoCollection.cs" />
<Compile Include="Exceptions.cs" />
<Compile Include="Extensions.cs" />
<Compile Include="Interfaces\IDataStore.cs" />
<Compile Include="Interfaces\ITableEntity.cs" />
<Compile Include="KeyScheme.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
<ProjectExtensions />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
10 changes: 10 additions & 0 deletions OpenNETCF.ORM/OpenNETCF.ORM.WinPhone.csproj.vspscc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}

0 comments on commit 9905dfe

Please sign in to comment.