Skip to content

Commit 69f2b78

Browse files
committed
updated Readme
added definition file fixed issures
1 parent e271910 commit 69f2b78

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+925
-620
lines changed

LICENSE.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*!
2+
MIT License
3+
4+
Copyright (c) 2017 Morris Janatzek
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
*/

Linq4JS.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

Linq4JS/Linq4JS.csproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
2424
</ItemGroup>
2525
<ItemGroup>
26-
<Content Include="Scripts\Linq4JS.js" />
27-
<Content Include="Scripts\Linq4JS.min.js">
26+
<Content Include="dist\Linq4JS.js" />
27+
<Content Include="dist\Linq4JS.min.js">
2828
<DependentUpon>Linq4JS.js</DependentUpon>
2929
</Content>
3030
<Content Include="Style\app.css" />
@@ -45,6 +45,7 @@
4545
<ItemGroup>
4646
<TypeScriptCompile Include="Linq4JS\Entity.ts" />
4747
<TypeScriptCompile Include="Linq4JS\Helper.ts" />
48+
<TypeScriptCompile Include="dist\Linq4JS.d.ts" />
4849
<TypeScriptCompile Include="Linq4JS\Modules\Add.ts" />
4950
<TypeScriptCompile Include="Linq4JS\Modules\AddRange.ts" />
5051
<TypeScriptCompile Include="Linq4JS\Modules\Any.ts" />
@@ -56,7 +57,7 @@
5657
<TypeScriptCompile Include="Linq4JS\Modules\FirstOrDefault.ts" />
5758
<TypeScriptCompile Include="Linq4JS\Modules\ForEach.ts" />
5859
<TypeScriptCompile Include="Linq4JS\Modules\Get.ts" />
59-
<TypeScriptCompile Include="Linq4JS\Modules\IArray.ts" />
60+
<TypeScriptCompile Include="Linq4JS\IArray.ts" />
6061
<TypeScriptCompile Include="Linq4JS\Modules\Insert.ts" />
6162
<TypeScriptCompile Include="Linq4JS\Modules\Last.ts" />
6263
<TypeScriptCompile Include="Linq4JS\Modules\LastOrDefault.ts" />
@@ -80,6 +81,7 @@
8081
</ItemGroup>
8182
<ItemGroup>
8283
<None Include="bundleconfig.json" />
84+
<Content Include="tsconfig.json" />
8385
<None Include="web.Debug.config">
8486
<DependentUpon>web.config</DependentUpon>
8587
</None>

Linq4JS/Linq4JS/Entity.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Linq4JS/Linq4JS/Entity.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Linq4JS/Linq4JS/Entity.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
namespace Linq4JS {
2-
export class Entity {
2+
export class Entity implements Entity {
3+
constructor(_id: number) {
4+
this.Id = _id;
5+
}
6+
37
Id: number;
48
}
59
}

Linq4JS/Linq4JS/Helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
namespace Linq4JS {
2-
export class Helper {
2+
export class Helper implements Helper {
33
static ConvertStringFunction: Function = function (functionString: string): Function {
44

55
if (functionString.length == 0) {

Linq4JS/Linq4JS/IArray.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
interface Array<T> {
2+
Order: Array<Linq4JS.OrderEntry>;
3+
4+
Clone(): Array<T>;
5+
FindIndex(filter: any): number;
6+
Get(index: number): T;
7+
ForEach(action: any): Array<T>;
8+
Update(object: T, primaryKeySelector?: any): Array<T>;
9+
UpdateRange(objects: Array<T>, primaryKeySelector?: any): Array<T>;
10+
Remove(object: T, primaryKeySelector?: any): Array<T>;
11+
RemoveRange(objects: Array<T>, primaryKeySelector?: any): Array<T>;
12+
Add(object: T): Array<T>;
13+
AddRange(objects: Array<T>): Array<T>;
14+
Insert(object: T, index: number): Array<T>;
15+
Where(filter: any): Array<T>;
16+
Range(start: number, length: number): Array<T>;
17+
Count(filter?: any): number;
18+
Any(filter?: any): boolean;
19+
First(filter?: any): T;
20+
FirstOrDefault(filter?: any): T;
21+
Last(filter?: any): T;
22+
LastOrDefault(filter?: any): T;
23+
Select(selector: any): any[];
24+
Take(count: number): Array<T>;
25+
Skip(count: number): Array<T>;
26+
OrderBy(valueSelector: any): Array<T>;
27+
ThenBy(valueSelector: any): Array<T>;
28+
OrderByDescending(valueSelector: any): Array<T>;
29+
ThenByDescending(valueSelector: any): Array<T>;
30+
Move(oldIndex: number, newIndex: number): Array<T>;
31+
Distinct(valueSelector: any, takelast?: boolean): Array<T>;
32+
}

0 commit comments

Comments
 (0)