content stringlengths 5 1.04M | avg_line_length float64 1.75 12.9k | max_line_length int64 2 244k | alphanum_fraction float64 0 0.98 | licenses list | repository_name stringlengths 7 92 | path stringlengths 3 249 | size int64 5 1.04M | lang stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace CassandraQuickstart.CosmosDBUtils
{
using System;
using System.Threading;
using Cassandra;
/// <summary>
/// The retry policy performs growing/fixed back-offs for overloaded exceptions based on the max retries:
/// 1.If Max retries == -1, i.e., retry infinitely, then we follow a fixed back - off scheme of 5 seconds on each retry.
/// 2.If Max retries != -1, and is any positive number n, then we follow a growing back - off scheme of(i * 1) seconds where 'i' is the i'th retry.
/// If you'd like to modify the back-off intervals, please update GrowingBackOffTimeMs and FixedBackOffTimeMs accordingly.
/// </summary>
internal sealed class CosmosDBMultipleRetryPolicy : IExtendedRetryPolicy
{
private const int GrowingBackOffTimeMs = 1000;
private const int FixedBackOffTimeMs = 5000;
private readonly int maxRetryCount;
public CosmosDBMultipleRetryPolicy(int maxRetryCount)
{
this.maxRetryCount = maxRetryCount;
}
/// <inheritdoc />
public RetryDecision OnReadTimeout(
IStatement query,
ConsistencyLevel cl,
int requiredResponses,
int receivedResponses,
bool dataRetrieved,
int nbRetry)
{
if (nbRetry < this.maxRetryCount)
{
return RetryDecision.Retry(cl, useCurrentHost: true);
}
return RetryDecision.Rethrow();
}
/// <inheritdoc />
public RetryDecision OnWriteTimeout(
IStatement query,
ConsistencyLevel cl,
string writeType,
int requiredAcks,
int receivedAcks,
int nbRetry)
{
if (query != null && query.IsIdempotent == true)
{
return this.GenerateRetryDecision(nbRetry, cl);
}
return RetryDecision.Rethrow();
}
/// <inheritdoc />
public RetryDecision OnUnavailable(
IStatement query,
ConsistencyLevel cl,
int requiredReplica,
int aliveReplica,
int nbRetry)
{
return RetryDecision.Rethrow();
}
/// <inheritdoc />
public RetryDecision OnRequestError(
IStatement statement,
Configuration config,
Exception ex,
int nbRetry)
{
if (ex is OverloadedException ||
(ex is OperationTimedOutException && statement.IsIdempotent.GetValueOrDefault(false)))
{
return this.GenerateRetryDecision(nbRetry, statement.ConsistencyLevel);
}
return RetryDecision.Rethrow();
}
private RetryDecision GenerateRetryDecision(int nbRetry, ConsistencyLevel? cl)
{
if (this.maxRetryCount == -1)
{
Thread.Sleep(CosmosDBMultipleRetryPolicy.FixedBackOffTimeMs);
return RetryDecision.Retry(cl, useCurrentHost: true);
}
else if (nbRetry < this.maxRetryCount)
{
Thread.Sleep(CosmosDBMultipleRetryPolicy.GrowingBackOffTimeMs * nbRetry);
return RetryDecision.Retry(cl, useCurrentHost: true);
}
return RetryDecision.Rethrow();
}
}
}
| 33.150943 | 152 | 0.582812 | [
"MIT"
] | sivethe/cassandra-driver-examples | dotnet/CosmosDBMultipleRetryPolicy.cs | 3,516 | C# |
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace TechnicalInterview.Exercice2.Tests
{
[TestClass]
public class ClosestToZeroDeterminatorTest
{
[TestMethod]
public void One_Number()
{
var inputs = new int[]
{
0
};
var closestToZeroDeterminator = new ClosestToZeroDeterminator(inputs);
var output = closestToZeroDeterminator.Determine();
Assert.AreEqual(output, 0);
}
[TestMethod]
public void Multiple_Positive_Numbers()
{
var inputs = new int[]
{
3,
10,
2,
6
};
var closestToZeroDeterminator = new ClosestToZeroDeterminator(inputs);
var output = closestToZeroDeterminator.Determine();
Assert.AreEqual(output, 2);
}
[TestMethod]
public void Multiple_Negative_Numbers()
{
var inputs = new int[]
{
-3,
-10,
-2,
-6
};
var closestToZeroDeterminator = new ClosestToZeroDeterminator(inputs);
var output = closestToZeroDeterminator.Determine();
Assert.AreEqual(output, -2);
}
[TestMethod]
public void Multiple_Positive_And_Negative_Numbers()
{
var inputs = new int[]
{
10,
-6,
-3,
6,
};
var closestToZeroDeterminator = new ClosestToZeroDeterminator(inputs);
var output = closestToZeroDeterminator.Determine();
Assert.AreEqual(output, -3);
}
[TestMethod]
public void Positive_Number_Has_Priority_Over_Negative_Number()
{
var inputs = new int[]
{
10,
-6,
-3,
3,
6,
};
var closestToZeroDeterminator = new ClosestToZeroDeterminator(inputs);
var output = closestToZeroDeterminator.Determine();
Assert.AreEqual(output, 3);
}
}
}
| 23.42268 | 82 | 0.488556 | [
"Unlicense"
] | ismailnguyen/TechnicalInterview | csharp/TechnicalInterview.Exercice2/TechnicalInterview.Exercice2.Tests/ClosestToZeroDeterminatorTest.cs | 2,274 | C# |
using Lykke.SettingsReader.Attributes;
namespace Lykke.Frontend.WampHost.Settings
{
public class SessionServiceSettings
{
[HttpCheck("/api/isalive")]
public string SessionServiceUrl { get; set; }
}
}
| 20.909091 | 53 | 0.691304 | [
"MIT"
] | LykkeCity/Lykke.Frontend.WampHost | src/Lykke.Frontend.WampHost/Settings/SessionServiceSettings.cs | 232 | C# |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class MapHandler
{
public int max = 30;
const int width = 40;
const int height = 40;
// bool[, ] cellmap = new bool[width, height];
float chanceToStartAlive = 0.4f;
int numberOfSteps = 10;
int deathLimit = 3;
int birthLimit = 4;
public bool[,] initialiseMap(bool[,] map){
for(int x=0; x<width; x++){
for(int y=0; y<height; y++){
if(Random.value < chanceToStartAlive){
map[x, y] = true;
}
}
}
return map;
}
public bool[,] doSimulationStep(bool[,] oldMap){
bool[,] newMap = new bool[width, height];
for(int x=0; x<oldMap.Length; x++){
for(int y=0; y<oldMap.Length; y++){
if(x >= width || y >= height) {
continue;
}
int nbs = countAliveNeighbours(oldMap, x, y);
if(oldMap[x, y]){
if(nbs < deathLimit){
newMap[x, y] = false;
}
else{
newMap[x, y] = true;
}
}
else{
if(nbs > birthLimit){
newMap[x, y] = true;
}
else{
newMap[x, y] = false;
}
}
}
}
return newMap;
}
public int countAliveNeighbours(bool[, ] map, int x, int y){
int count = 0;
for(int i=-1; i<2; i++){
for(int j=-1; j<2; j++){
int neighbour_x = x+i;
int neighbour_y = y+j;
if(neighbour_x >= width || neighbour_y >= height) {
continue;
}
if(i == 0 && j == 0){
}
else if(neighbour_x < 0 || neighbour_y < 0 || neighbour_x >= map.Length || neighbour_y >= map.Length){
count = count + 1;
}
else if(map[neighbour_x, neighbour_y]){
count = count + 1;
}
}
}
return count;
}
private Mesh CreateMesh(float width, float height)
{
Mesh m = new Mesh();
m.name = "ScriptedMesh";
m.vertices = new Vector3[] {
new Vector3(-width, -height, 0.01f),
new Vector3(width, -height, 0.01f),
new Vector3(width, height, 0.01f),
new Vector3(-width, height, 0.01f)
};
m.uv = new Vector2[] {
new Vector2 (0, 0),
new Vector2 (0, 1),
new Vector2(1, 1),
new Vector2 (1, 0)
};
m.triangles = new int[] { 0, 1, 2, 0, 2, 3};
m.RecalculateNormals();
return m;
}
private void CreatePlane(float w, float h, float rotation, int x, int y) {
GameObject plane = new GameObject("Plane");
MeshFilter meshFilter = (MeshFilter)plane.AddComponent(typeof(MeshFilter));
meshFilter.mesh = CreateMesh(w/2, h);
MeshRenderer renderer = plane.AddComponent(typeof(MeshRenderer)) as MeshRenderer;
//renderer.material.shader = Shader.Find ("Particles/Additive");
TextureHandler th = (TextureHandler)GameObject.FindObjectOfType<TextureHandler> ();
//renderer.material.mainTexture = th.pillars;
renderer.material.color = th.pillars;
renderer.material.shader = Shader.Find ("Standard (Vertex Color)");
//renderer.material.SetTextureScale("Tiling", new Vector2(5f,5f))
// Texture2D tex = new Texture2D(1, 1);
// tex.SetPixel(0, 0, Color.green);
// tex.Apply();
// renderer.material.mainTexture = tex;
// renderer.material.color = Color.green;
plane.transform.rotation = Quaternion.Euler(new Vector3(0,rotation,0));
plane.transform.position = new Vector3 (x, -h+World.floorHeight-1, y);
}
public MapHandler() {
DungeonGenerator gen = new DungeonGenerator ();
int width = 1024;
int height = 1024;
int[,] map = gen.Generate (width, height, 50, 30, 250, 100);
World.width = height / World.chunkSize;
World.depth = width / World.chunkSize;
World.CreateChunks ();
TextureHandler th = (TextureHandler)GameObject.FindObjectOfType<TextureHandler> ();
// Create pillars below rooms
List<KeyValuePair<int, int[]>> pillars = gen.GetPillars ();
foreach(var p in pillars ) {
CreatePlane (p.Key, 100, p.Value[2], p.Value[0], p.Value[1]);
}
// Create lights
List<int[]> lights = gen.GetLights ();
foreach(var l in lights ) {
// Create light pillars.
int size = 10;
for(int x = l[0]-size/2+1; x < l[0]+size/2-1; x++) {
for(int y = l[1]-size/2+1; y < l[1]+size/2-1; y++) {
float r = Random.Range (1, 15);
for (int h = 15; h > 15-r; h--) {
// World.blocks [x, h, y] = th.GetGroundColor2 (x, h);
World.blocks [x, h, y] = th.GetColor(th.pillars);
}
for(int h = 40; h > 15; h--) {
//World.blocks [x, h, y] = th.GetGroundColor2 (x, h);
World.blocks [x, h, y] = th.GetColor(th.pillars);
}
}
}
CreateLight (l[0]-1, 45, l[1]-1);
}
// Create brdige lights
List<int[]> bridgeLights = gen.GetBridgeLights ();
foreach(var l in bridgeLights ) {
// Create light pillars.
int size = 6;
for(int x = l[0]-size/2; x < l[0]+size/2; x++) {
for(int y = l[1]-size/2; y < l[1]+size/2; y++) {
float r = Random.Range (1, 15);
for (int h = 15; h > 15-r; h--) {
World.blocks [x, h, y] = th.GetColor (th.pillars);
// World.blocks [x, h, y] = th.GetGroundColor2 (x, h);
}
for(int h = 35; h > 15; h--) {
// World.blocks [x, h, y] = th.GetGroundColor2 (x, h);
World.blocks [x, h, y] = th.GetColor (th.pillars);
}
}
}
World.blocks [l [0]-1, 36, l [1]-1] = (255 & 0xFF) << 24 | (255 & 0xFF) << 16 | (251 & 0xFF) << 8;
World.blocks [l [0]-1, 37, l [1]-1] = (255 & 0xFF) << 24 | (255 & 0xFF) << 16 | (251 & 0xFF) << 8;
CreateBridgeLight (l[0]-1, 37, l[1]-1);
}
// Fences on bridges
List<int[]> bridgeFence = gen.GetBridgeFence();
foreach(var l in bridgeFence ) {
// Create light pillars.
int size = 4;
for(int x = l[0]-size/2; x < l[0]+size/2; x++) {
for(int y = l[1]-size/2; y < l[1]+size/2; y++) {
World.blocks [x, 30, y] = th.GetColor (th.fence);
//World.blocks [x, 30, y] = th.GetFenceColor (x, y);
}
}
}
for(int x = 0; x < width; x++) {
for(int y = 0; y < height; y++) {
if (map [x, y] == (int)DungeonGenerator.types.Room) {
// World.blocks [x, World.floorHeight, y] = th.GetGroundColor (x,y);
World.blocks [x, World.floorHeight, y] = th.GetColor (th.floor);
} else if(map[x,y] == (int)DungeonGenerator.types.Road) {
// World.blocks [x, World.floorHeight, y] = th.GetGroundColor2 (x,y);
World.blocks [x, World.floorHeight, y] = th.GetColor (th.bridge);
} else if(map[x,y] == (int)DungeonGenerator.types.Player) {
Player.player.obj.transform.position = new Vector3(x,World.floorHeight,y);
}
// ROOMS
if (x + 1 < width) {
if (map [x + 1, y] == (int)DungeonGenerator.types.Empty && map [x, y] == (int)DungeonGenerator.types.Room) {
int r = (int)Random.Range (4, 15);
for (int n = World.floorHeight - r; n <= World.floorHeight-3; n++) {
for (int i = 0; i < 6; i++) {
World.blocks [x + i, n, y] = th.GetColor (th.wall);
// World.blocks [x + i, n, y] = th.GetWallColor (n, y);
}
}
for (int n = World.floorHeight-3; n <= World.floorHeight+2; n++) {
for (int i = 0; i < 3; i++) {
// World.blocks [x + i, n, y] = th.GetWallColor (n, y);
World.blocks [x + i, n, y] = th.GetColor (th.wall);
}
}
for (int n = World.floorHeight+2; n <= World.floorHeight+15; n++) {
for (int i = 0; i < 6; i++) {
/// World.blocks [x + i, n, y] = th.GetWallColor (n, y);
World.blocks [x + i, n, y] = th.GetColor (th.wall);
}
if(n == World.floorHeight+15) {
for (int i = 0; i < 6; i++) {
//World.blocks [x + i, n, y] = th.GetGroundColor2 (x-i, y);
World.blocks [x + i, n, y] = th.GetColor (th.floor);
}
}
}
}
}
if (x - 1 > 0) {
if (map [x - 1, y] == (int)DungeonGenerator.types.Empty && map [x, y] == (int)DungeonGenerator.types.Room) {
int r = (int)Random.Range (4, 15);
for (int n = World.floorHeight - r; n <= World.floorHeight-3; n++) {
for (int i = 0; i < 6; i++) {
// World.blocks [x - i, n, y] = th.GetWallColor (n, y);
World.blocks [x - i, n, y] = th.GetColor (th.wall);
}
}
for (int n = World.floorHeight-3; n <= World.floorHeight+2; n++) {
for (int i = 0; i < 3; i++) {
// World.blocks [x - i, n, y] = th.GetWallColor (n, y);
World.blocks [x - i, n, y] = th.GetColor (th.wall);
}
}
for (int n = World.floorHeight+2; n <= World.floorHeight+15; n++) {
for (int i = 0; i < 6; i++) {
// World.blocks [x - i, n, y] = th.GetWallColor (n, y);
World.blocks [x - i, n, y] = th.GetColor (th.wall);
}
if(n == World.floorHeight+15) {
for (int i = 0; i < 6; i++) {
// World.blocks [x - i, n, y] = th.GetGroundColor2 (x+i, y);
World.blocks [x - i, n, y] = th.GetColor (th.floor);
}
}
}
}
}
if (y + 1 < height) {
if (map [x, y + 1] == (int)DungeonGenerator.types.Empty && map [x, y] == (int)DungeonGenerator.types.Room) {
int r = (int)Random.Range (4, 15);
for (int n = World.floorHeight - r; n <= World.floorHeight-3; n++) {
for (int i = 0; i < 6; i++) {
// World.blocks [x, n, y+i] = th.GetWallColor (x, n);
World.blocks [x, n, y+i] = th.GetColor (th.wall);
}
}
for (int n = World.floorHeight-3; n <= World.floorHeight+2; n++) {
for (int i = 0; i < 3; i++) {
// World.blocks [x, n, y+i] = th.GetWallColor (x, n);
World.blocks [x, n, y+i] = th.GetColor (th.wall);
}
}
for (int n = World.floorHeight+2; n <= World.floorHeight+15; n++) {
for (int i = 0; i < 6; i++) {
// World.blocks [x, n, y+i] = th.GetWallColor (x, n);
World.blocks [x, n, y+i] = th.GetColor (th.wall);
}
if(n == World.floorHeight+15) {
for (int i = 0; i < 6; i++) {
// World.blocks [x, n, y+i] = th.GetGroundColor2 (x, y+i);
World.blocks [x, n, y+i] = th.GetColor (th.floor);
}
}
}
}
}
if (y > 0) {
if (map [x, y - 1] == (int)DungeonGenerator.types.Empty && map [x, y] == (int)DungeonGenerator.types.Room) {
int r = (int)Random.Range (4, 15);
for (int n = World.floorHeight - r; n <= World.floorHeight-3; n++) {
for (int i = 0; i < 6; i++) {
// World.blocks [x, n, y-i] = th.GetWallColor (x, n);
World.blocks [x, n, y-i] = th.GetColor (th.wall);
}
}
for (int n = World.floorHeight-3; n <= World.floorHeight+2; n++) {
for (int i = 0; i < 3; i++) {
World.blocks [x, n, y-i] = th.GetColor (th.wall);
// World.blocks [x, n, y-i] = th.GetWallColor (x, n);
}
}
for (int n = World.floorHeight+2; n <= World.floorHeight+15; n++) {
for (int i = 0; i < 6; i++) {
World.blocks [x, n, y-i] = th.GetColor (th.wall);
// World.blocks [x, n, y-i] = th.GetWallColor (x, n);
}
if(n == World.floorHeight+15) {
for (int i = 0; i < 6; i++) {
// World.blocks [x, n, y-i] = th.GetGroundColor2 (x, y-i);
World.blocks [x, n, y-i] = th.GetColor (th.floor);
}
}
}
}
}
// ROADS
if (x + 1 < width) {
if (map [x + 1, y] == (int)DungeonGenerator.types.Empty && map [x, y] == (int)DungeonGenerator.types.Road) {
int r = (int)Random.Range (4, 10);
for (int n = World.floorHeight - r; n <= World.floorHeight-3; n++) {
for (int i = 0; i < 6; i++) {
// World.blocks [x + i, n, y] = th.GetWallColor (n, y);
World.blocks [x + i, n, y] = th.GetColor (th.wall);
}
}
for (int n = World.floorHeight-3; n <= World.floorHeight; n++) {
for (int i = 0; i < 3; i++) {
World.blocks [x + i, n, y] = th.GetColor (th.wall);
// World.blocks [x + i, n, y] = th.GetWallColor (n, y);
}
}
for (int n = World.floorHeight; n <= World.floorHeight+2; n++) {
for (int i = 0; i < 2; i++) {
// World.blocks [x + i, n, y] = th.GetWallColor (n, y);
World.blocks [x + i, n, y] = th.GetColor (th.wall);
}
if(n == World.floorHeight+2) {
for (int i = 0; i < 6; i++) {
World.blocks [x + i, n, y] = th.GetColor (th.floor);
// World.blocks [x + i, n, y] = th.GetGroundColor2 (x-i, y);
}
}
}
}
}
if (x - 1 > 0) {
if (map [x - 1, y] == (int)DungeonGenerator.types.Empty && map [x, y] == (int)DungeonGenerator.types.Road) {
int r = (int)Random.Range (4, 10);
for (int n = World.floorHeight - r; n <= World.floorHeight-3; n++) {
for (int i = 0; i < 6; i++) {
// World.blocks [x - i, n, y] = th.GetWallColor (n, y);
World.blocks [x - i, n, y] = th.GetColor (th.wall);
}
}
for (int n = World.floorHeight-3; n <= World.floorHeight; n++) {
for (int i = 0; i < 3; i++) {
World.blocks [x - i, n, y] = th.GetColor (th.wall);
// World.blocks [x - i, n, y] = th.GetWallColor (n, y);
}
}
for (int n = World.floorHeight; n <= World.floorHeight+2; n++) {
for (int i = 0; i < 6; i++) {
World.blocks [x - i, n, y] = th.GetColor (th.wall);
// World.blocks [x - i, n, y] = th.GetWallColor (n, y);
}
if(n == World.floorHeight+2) {
for (int i = 0; i < 6; i++) {
// World.blocks [x - i, n, y] = th.GetGroundColor2 (x+i, y);
World.blocks [x - i, n, y] = th.GetColor (th.floor);
}
}
}
}
}
if (y + 1 < height) {
if (map [x, y + 1] == (int)DungeonGenerator.types.Empty && map [x, y] == (int)DungeonGenerator.types.Road) {
int r = (int)Random.Range (4, 10);
for (int n = World.floorHeight - r; n <= World.floorHeight-3; n++) {
for (int i = 0; i < 6; i++) {
World.blocks [x, n, y+i] = th.GetColor (th.wall);
// World.blocks [x, n, y+i] = th.GetWallColor (x, n);
}
}
for (int n = World.floorHeight-3; n <= World.floorHeight; n++) {
for (int i = 0; i < 3; i++) {
World.blocks [x, n, y+i] = th.GetColor (th.wall);
// World.blocks [x, n, y+i] = th.GetWallColor (x, n);
}
}
for (int n = World.floorHeight; n <= World.floorHeight+2; n++) {
for (int i = 0; i < 6; i++) {
// World.blocks [x, n, y+i] = th.GetWallColor (x, n);
World.blocks [x, n, y+i] = th.GetColor (th.wall);
}
if(n == World.floorHeight+2) {
for (int i = 0; i < 6; i++) {
World.blocks [x, n, y+i] = th.GetColor (th.floor);
// World.blocks [x, n, y+i] = th.GetGroundColor2 (x, y+i);
}
}
}
}
}
if (y > 0) {
if (map [x, y - 1] == (int)DungeonGenerator.types.Empty && map [x, y] == (int)DungeonGenerator.types.Road) {
int r = (int)Random.Range (4, 10);
for (int n = World.floorHeight - r; n <= World.floorHeight-3; n++) {
for (int i = 0; i < 6; i++) {
// World.blocks [x, n, y-i] = th.GetWallColor (x, n);
World.blocks [x, n, y-i] = th.GetColor (th.wall);
}
}
for (int n = World.floorHeight-3; n <= World.floorHeight; n++) {
for (int i = 0; i < 3; i++) {
World.blocks [x, n, y-i] = th.GetColor (th.wall);
// World.blocks [x, n, y-i] = th.GetWallColor (x, n);
}
}
for (int n = World.floorHeight; n <= World.floorHeight+2; n++) {
for (int i = 0; i < 6; i++) {
// World.blocks [x, n, y-i] = th.GetWallColor (x, n);
World.blocks [x, n, y-i] = th.GetColor (th.wall);
}
if(n == World.floorHeight+2) {
for (int i = 0; i < 6; i++) {
// World.blocks [x, n, y-i] = th.GetGroundColor2 (x, y-i);
World.blocks [x, n, y-i] = th.GetColor (th.floor);
}
}
}
}
}
}
}
}
// TBD: make meshes ("grounds") on all rooms.
// TBD: Make borders on roads
// TBD: Make walls on rooms except where door is.
// public void MapHandler2(){
// int f = World.floorHeight;
//
//
// bool[,] cellmap = new bool[width, height];
// cellmap = initialiseMap(cellmap);
// for(int i=0; i<numberOfSteps; i++){
// cellmap = doSimulationStep(cellmap);
// }
//
// // TBD: Flood fill to check largest chunk
//
// // Increase the map.
// int size = 15;
// World.width = (height * size) / World.chunkSize;
// World.depth = (width * size) / World.chunkSize;
// World.CreateChunks ();
//
// TextureHandler th = (TextureHandler)GameObject.FindObjectOfType<TextureHandler> ();
// for(int x = 3; x < width-3; x++) {
// for(int y = 3; y < height-3; y++) {
// if(cellmap[x,y] == false) {
// for (int x1 = x * size; x1 < x * size + size; x1++) {
// for (int y1 = y * size; y1 < y * size + size; y1++) {
// World.AddBlock (x1, World.floorHeight, y1, 10000);
// }
// }
// }
// }
// }
//// if(n > max - 2 && Random.value > 0.95) {
//// CreateLight (x, n, y);
//// }
//
// // Texture the walls and floor
// max = World.floorHeight - 10;
// for (int x = 1; x < World.width*World.chunkSize - 1; x++) {
// for (int y = 1; y < World.depth*World.chunkSize - 1; y++) {
// if(World.blocks[x,f,y] != 0) {
// int color = th.GetGroundColor (x, y);
// World.blocks [x, f, y] = color;
//
// if(World.blocks[x+1,f,y] == 0) {
// int from = 0; // (int)Random.Range(0,f);
// for(int n = from; n < max; n++) {
// World.blocks [x-3, n, y] = th.GetWallColor(n,y);
// }
// for(int n = max; n < World.floorHeight+5; n++) {
// int col = th.GetWallColor2 (n,y);
// if (n == World.floorHeight + 4) {
// col = th.GetGroundColor2 (x, y);
// World.blocks [x, n, y] = col;
// col = th.GetGroundColor2 (x-1, y);
// World.blocks [x - 1, n, y] = col;
// col = th.GetGroundColor2 (x-2, y);
// World.blocks [x - 2, n, y] = col;
// col = th.GetGroundColor2 (x-3, y);
// World.blocks [x - 3, n, y] = col;
// } else {
// World.blocks [x, n, y] = col;
// World.blocks [x - 1, n, y] = col;
// World.blocks [x - 2, n, y] = col;
// World.blocks [x - 3, n, y] = col;
// }
// }
// }
// if(World.blocks[x-1,f,y] == 0) {
// int from = 0; // (int)Random.Range(0,f);
// for(int n = from; n < max; n++) {
// World.blocks [x, n, y] = th.GetWallColor(n,y);
// }
// }
// if(World.blocks[x,f,y+1] == 0) {
// int from = 0; // (int)Random.Range(0,f);
// for(int n = from; n < max; n++) {
// World.blocks [x, n, y] = th.GetWallColor(x,n);
// }
// }
// if(World.blocks[x,f,y-1] == 0) {
// int from = 0; // (int)Random.Range(0,f);
// for(int n = from; n < max; n++) {
// World.blocks [x, n, y] = th.GetWallColor(x,n);
// }
// }
//
// // TBD: Fix this.
// if(World.blocks[x+1,f,y-1] == 0) {
// int from = 0; // (int)Random.Range(0,f);
// for(int n = from; n < max; n++) {
// //World.blocks [x, n, y] = th.GetWallColor(y, n);
// }
// }
// if(World.blocks[x-1,f,y+1] == 0) {
// int from = (int)Random.Range(0,f);
// for(int n = from; n < max; n++) {
// //World.blocks [x, n, y] = th.GetWallColor(n, x);
// }
// }
// if(World.blocks[x+1,f,y+1] == 0) {
// int from = (int)Random.Range(0,f);
// for(int n = from; n < max; n++) {
// // World.blocks [x, n, y] = th.GetWallColor(x,n);
// }
// }
// if(World.blocks[x-1,f,y-1] == 0) {
// int from = (int)Random.Range(0,f);
// for(int n = from; n < max; n++) {
// // World.blocks [x, n, y] = th.GetWallColor(x,n);
// }
// }
// }
// }
// }
//
// // Just place 3 boxes randomly to test
//// AddBox(150, 150, 10);
//// AddBox(150, 350, 10);
//// AddBox(350, 350, 10);
////
//// AddTower(330, 350, 30, 5);
//// AddTower(310, 250, 40, 5);
// }
// public void AddCarpet(int x_, int y_, int h) {
// int size = 32;
// TextureHandler th = (TextureHandler)GameObject.FindObjectOfType<TextureHandler> ();
// for(int x = x_; x <= x_ + size; x++) {
// int xd = x - x_;
// for(int y = 0; y <= size*2; y++) {
// World.blocks[x, h, y+y_] = th.GetCarpetColor(xd, y, size);
// }
// }
// }
private void CreateLight(int x, int y, int z) {
// Create particle flow
GameObject myFire = GameObject.Instantiate(GameObject.Find("BlueFire"));
myFire.transform.localPosition = new Vector3(x, y, z);
myFire.GetComponent<ParticleSystem> ().Play ();
GameObject fireLight = GameObject.Instantiate(GameObject.Find("firelight"));
fireLight.transform.localPosition = new Vector3(x, y+2, z);
}
private void CreateBridgeLight(int x, int y, int z) {
// Create particle flow
GameObject myFire = GameObject.Instantiate(GameObject.Find("BridgeFire"));
myFire.transform.localPosition = new Vector3(x, y, z);
myFire.GetComponent<ParticleSystem> ().Play ();
// GameObject fireLight = GameObject.Instantiate(GameObject.Find("BridgeLight"));
// fireLight.transform.localPosition = new Vector3(x, y+2, z);
// fireLight.transform.localScale = new Vector3(0.5f, 0.5f, 0.5f);
}
//
// public void AddTower(int x_, int z_, int h_, int size) {
// TextureHandler th = (TextureHandler)GameObject.FindObjectOfType<TextureHandler> ();
// for(int x = x_; x <= x_ + size; x++) {
// int xd = x - x_;
// for(int z = 0; z <= size; z++) {
// for (int h = 0; h <= h_; h++) {
// World.blocks [x, h + z, z_ + size] = th.GetBoxColor (xd, z, size);
// World.blocks [x_ + size, h + z, x] = th.GetBoxColor (xd, z, size);
// World.blocks [x, h + z, z_] = th.GetBoxColor (xd, z, size);
// World.blocks [x_, h + z, x] = th.GetBoxColor (xd, z, size);
// World.blocks [x, h + size, z + z_] = th.GetBoxColor (xd, z, size);
// }
// }
// }
//
// }
// public void AddBox(int x_, int y_, int h) {
// int size = 16;
// TextureHandler th = (TextureHandler)GameObject.FindObjectOfType<TextureHandler> ();
// for(int x = x_; x <= x_ + size; x++) {
// int xd = x - x_;
// for(int y = 0; y <= size; y++) {
// World.blocks[x, h+y, y_+size] = th.GetBoxColor(xd, y, size);
// World.blocks[x_+size, h+y, x] = th.GetBoxColor(xd, y, size);
// World.blocks[x, h+y, y_] = th.GetBoxColor(xd, y, size);
// World.blocks[x_, h+y, x] = th.GetBoxColor(xd, y, size);
// World.blocks[x, h+size, y+y_] = th.GetBoxColor(xd, y, size);
// }
// }
//
// }
}
| 36.24375 | 113 | 0.498405 | [
"MIT"
] | BrennerLittle/voxelengine_unity | Assets/voxel_engine/MapHandler.cs | 23,198 | C# |
using EngineeringUnits.Units;
namespace EngineeringUnits
{
//This class is auto-generated, changes to the file will be overwritten!
public partial class Power
{
/// <summary>
/// Get Power from SI.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromSI(double SI)
{
double value= (double)SI;
return new Power(value, PowerUnit.SI);
}
/// <summary>
/// Get Power from Femtowatt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromFemtowatt(double Femtowatt)
{
double value= (double)Femtowatt;
return new Power(value, PowerUnit.Femtowatt);
}
/// <summary>
/// Get Power from Picowatt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromPicowatt(double Picowatt)
{
double value= (double)Picowatt;
return new Power(value, PowerUnit.Picowatt);
}
/// <summary>
/// Get Power from Nanowatt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromNanowatt(double Nanowatt)
{
double value= (double)Nanowatt;
return new Power(value, PowerUnit.Nanowatt);
}
/// <summary>
/// Get Power from Microwatt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromMicrowatt(double Microwatt)
{
double value= (double)Microwatt;
return new Power(value, PowerUnit.Microwatt);
}
/// <summary>
/// Get Power from Milliwatt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromMilliwatt(double Milliwatt)
{
double value= (double)Milliwatt;
return new Power(value, PowerUnit.Milliwatt);
}
/// <summary>
/// Get Power from Deciwatt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromDeciwatt(double Deciwatt)
{
double value= (double)Deciwatt;
return new Power(value, PowerUnit.Deciwatt);
}
/// <summary>
/// Get Power from Watt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromWatt(double Watt)
{
double value= (double)Watt;
return new Power(value, PowerUnit.Watt);
}
/// <summary>
/// Get Power from Decawatt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromDecawatt(double Decawatt)
{
double value= (double)Decawatt;
return new Power(value, PowerUnit.Decawatt);
}
/// <summary>
/// Get Power from Kilowatt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromKilowatt(double Kilowatt)
{
double value= (double)Kilowatt;
return new Power(value, PowerUnit.Kilowatt);
}
/// <summary>
/// Get Power from Megawatt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromMegawatt(double Megawatt)
{
double value= (double)Megawatt;
return new Power(value, PowerUnit.Megawatt);
}
/// <summary>
/// Get Power from Gigawatt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromGigawatt(double Gigawatt)
{
double value= (double)Gigawatt;
return new Power(value, PowerUnit.Gigawatt);
}
/// <summary>
/// Get Power from Terawatt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromTerawatt(double Terawatt)
{
double value= (double)Terawatt;
return new Power(value, PowerUnit.Terawatt);
}
/// <summary>
/// Get Power from Petawatt.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromPetawatt(double Petawatt)
{
double value= (double)Petawatt;
return new Power(value, PowerUnit.Petawatt);
}
/// <summary>
/// Get Power from MillijoulePerHour.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromMillijoulePerHour(double MillijoulePerHour)
{
double value= (double)MillijoulePerHour;
return new Power(value, PowerUnit.MillijoulePerHour);
}
/// <summary>
/// Get Power from JoulePerHour.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromJoulePerHour(double JoulePerHour)
{
double value= (double)JoulePerHour;
return new Power(value, PowerUnit.JoulePerHour);
}
/// <summary>
/// Get Power from KilojoulePerHour.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromKilojoulePerHour(double KilojoulePerHour)
{
double value= (double)KilojoulePerHour;
return new Power(value, PowerUnit.KilojoulePerHour);
}
/// <summary>
/// Get Power from MegajoulePerHour.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromMegajoulePerHour(double MegajoulePerHour)
{
double value= (double)MegajoulePerHour;
return new Power(value, PowerUnit.MegajoulePerHour);
}
/// <summary>
/// Get Power from GigajoulePerHour.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromGigajoulePerHour(double GigajoulePerHour)
{
double value= (double)GigajoulePerHour;
return new Power(value, PowerUnit.GigajoulePerHour);
}
/// <summary>
/// Get Power from BritishThermalUnitPerHour.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromBritishThermalUnitPerHour(double BritishThermalUnitPerHour)
{
double value= (double)BritishThermalUnitPerHour;
return new Power(value, PowerUnit.BritishThermalUnitPerHour);
}
/// <summary>
/// Get Power from BritishThermalUnitPerMinute.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromBritishThermalUnitPerMinute(double BritishThermalUnitPerMinute)
{
double value= (double)BritishThermalUnitPerMinute;
return new Power(value, PowerUnit.BritishThermalUnitPerMinute);
}
/// <summary>
/// Get Power from BritishThermalUnitPerSecond.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromBritishThermalUnitPerSecond(double BritishThermalUnitPerSecond)
{
double value= (double)BritishThermalUnitPerSecond;
return new Power(value, PowerUnit.BritishThermalUnitPerSecond);
}
/// <summary>
/// Get Power from KilobritishThermalUnitPerHour.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromKilobritishThermalUnitPerHour(double KilobritishThermalUnitPerHour)
{
double value= (double)KilobritishThermalUnitPerHour;
return new Power(value, PowerUnit.KilobritishThermalUnitPerHour);
}
/// <summary>
/// Get Power from BoilerHorsepower.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromBoilerHorsepower(double BoilerHorsepower)
{
double value= (double)BoilerHorsepower;
return new Power(value, PowerUnit.BoilerHorsepower);
}
/// <summary>
/// Get Power from ElectricalHorsepower.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromElectricalHorsepower(double ElectricalHorsepower)
{
double value= (double)ElectricalHorsepower;
return new Power(value, PowerUnit.ElectricalHorsepower);
}
/// <summary>
/// Get Power from HydraulicHorsepower.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromHydraulicHorsepower(double HydraulicHorsepower)
{
double value= (double)HydraulicHorsepower;
return new Power(value, PowerUnit.HydraulicHorsepower);
}
/// <summary>
/// Get Power from MechanicalHorsepower.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromMechanicalHorsepower(double MechanicalHorsepower)
{
double value= (double)MechanicalHorsepower;
return new Power(value, PowerUnit.MechanicalHorsepower);
}
/// <summary>
/// Get Power from MetricHorsepower.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromMetricHorsepower(double MetricHorsepower)
{
double value= (double)MetricHorsepower;
return new Power(value, PowerUnit.MetricHorsepower);
}
/// <summary>
/// Get Power from CaloriePerSecond.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromCaloriePerSecond(double CaloriePerSecond)
{
double value= (double)CaloriePerSecond;
return new Power(value, PowerUnit.CaloriePerSecond);
}
/// <summary>
/// Get Power from KilocaloriePerHour.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromKilocaloriePerHour(double KilocaloriePerHour)
{
double value= (double)KilocaloriePerHour;
return new Power(value, PowerUnit.KilocaloriePerHour);
}
/// <summary>
/// Get Power from KilocaloriePerSecond.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromKilocaloriePerSecond(double KilocaloriePerSecond)
{
double value= (double)KilocaloriePerSecond;
return new Power(value, PowerUnit.KilocaloriePerSecond);
}
/// <summary>
/// Get Power from SolarLuminosity.
/// </summary>
/// <exception cref="ArgumentException">If value is NaN or Infinity.</exception>
public static Power FromSolarLuminosity(double SolarLuminosity)
{
double value= (double)SolarLuminosity;
return new Power(value, PowerUnit.SolarLuminosity);
}
}
}
| 44.721311 | 103 | 0.547581 | [
"MIT"
] | AtefeBahrani/EngineeringUnits | EngineeringUnits/CombinedUnits/Power/PowerSet.cs | 13,640 | C# |
using System.Threading.Tasks;
namespace Opw.PineBlog.FeatureManagement
{
/// <summary>
/// Used to evaluate whether a feature is enabled or disabled.
/// </summary>
public interface IFeatureManager
{
FeatureState IsEnabled(FeatureFlag featureFlag);
Task<FeatureState> IsEnabledAsync(FeatureFlag featureFlag);
}
}
| 23.666667 | 67 | 0.701408 | [
"MIT"
] | ofpinewood/pineblog | src/Opw.PineBlog.Abstractions/FeatureManagement/IFeatureManager.cs | 355 | C# |
// Copyright (c) 2015 Alachisoft
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using System.Collections;
using System.Threading;
using Alachisoft.NCache.Util;
using Alachisoft.NCache.Caching.Util;
using Alachisoft.NCache.Caching.AutoExpiration;
using Alachisoft.NCache.Caching.Statistics;
using Alachisoft.NCache.Parser;
using Alachisoft.NCache.Caching.Queries.Filters;
using Alachisoft.NCache.Runtime.Exceptions;
using Alachisoft.NCache.Caching.Exceptions;
using Alachisoft.NCache.Common;
using Alachisoft.NCache.Common.Enum;
using Alachisoft.NCache.Common.DataStructures;
using Alachisoft.NCache.Common.Util;
using Alachisoft.NCache.Common.Locking;
using Alachisoft.NCache.Common.Stats;
using Alachisoft.NCache.Caching.EvictionPolicies;
using Alachisoft.NCache.Caching.Queries;
using System.Collections.Generic;
using Alachisoft.NCache.Common.Net;
using Runtime = Alachisoft.NCache.Runtime;
using Alachisoft.NCache.Persistence;
namespace Alachisoft.NCache.Caching.Topologies.Local
{
/// <summary>
/// A class to serve as the base for all local cache implementations.
/// </summary>
internal class LocalCacheBase : CacheBase
{
/// <summary> The statistics for this cache scheme. </summary>
[CLSCompliant(false)]
protected CacheStatistics _stats;
/// <summary> Flag when set allow items to be evicted asynchronously..</summary>
[CLSCompliant(false)]
internal bool _allowAsyncEviction = true;
[CLSCompliant(false)]
protected CacheBase _parentCache;
/// <summary>The PreparedQueryTable for Search/SearchEntries performance optimization.</summary>
private Hashtable _preparedQueryTable = Hashtable.Synchronized(new Hashtable());
/// <summary>The size of PreparedQueryTable. Configurable from alachisoft.ncache.service.exe.config.</summary>
private int _preparedQueryTableSize = 1000;
/// <summary>The evictionPercentage. Configurable from alachisoft.ncache.service.exe.config.</summary>
private int _preparedQueryEvictionPercentage = 10;
private Hashtable _stateTransferKeyList;
/// <summary>
/// Overloaded constructor. Takes the listener as parameter.
/// </summary>
/// <param name="properties"></param>
/// <param name="listener"></param>
/// <param name="timeSched"></param>
/// <param name="asyncProcessor"></param>
/// <param name="expiryMgr"></param>
/// <param name="perfStatsColl"></param>
public LocalCacheBase(IDictionary properties, CacheBase parentCache, ICacheEventsListener listener, CacheRuntimeContext context
)
: base(properties, listener, context)
{
if (System.Configuration.ConfigurationSettings.AppSettings.Get("preparedQueryTableSize") != null)
{
_preparedQueryTableSize = Convert.ToInt32(System.Configuration.ConfigurationSettings.AppSettings.Get("preparedQueryTableSize"));
}
if (System.Configuration.ConfigurationSettings.AppSettings.Get("preparedQueryEvictionPercentage") != null)
{
_preparedQueryEvictionPercentage = Convert.ToInt32(System.Configuration.ConfigurationSettings.AppSettings.Get("preparedQueryEvictionPercentage"));
}
_stats = new CacheStatistics();
_stats.InstanceName = _context.PerfStatsColl.InstanceName;
_parentCache = parentCache;
}
public LocalCacheBase()
{
}
#region / --- IDisposable --- /
/// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or
/// resetting unmanaged resources.
/// </summary>
public override void Dispose()
{
_stats = null;
base.Dispose();
}
#endregion
/// <summary>
/// returns the statistics of the Clustered Cache.
/// </summary>
public override CacheStatistics Statistics
{
get { return _stats.Clone() as CacheStatistics; }
}
internal override CacheStatistics ActualStats
{
get { return _stats; }
}
/// <summary>
/// Returns the cache local to the node, i.e., internal cache.
/// </summary>
protected internal override CacheBase InternalCache
{
get { return this; }
}
/// <summary>
/// Returns true if this is the root internal cache.
/// </summary>
protected bool IsSelfInternal
{
get
{
if (_context.CacheInternal is CacheSyncWrapper)
return ReferenceEquals(this, ((CacheSyncWrapper)_context.CacheInternal).Internal);
return ReferenceEquals(this, _context.CacheInternal);
}
}
/// <summary>
/// PreparedQueryTable to keep the track of recent successfull parsed queries.
/// </summary>
public Hashtable PreparedQueryTable
{
get { return _preparedQueryTable; }
}
#region / --- CacheBase --- /
public override void UpdateClientsList(Hashtable list)
{
if (_stats != null) _stats.ClientsList = list;
}
/// <summary>
/// Removes all entries from the store.
/// </summary>
public sealed override void Clear(CallbackEntry cbEntry, OperationContext operationContext)
{
ClearInternal();
if (IsSelfInternal)
{
_context.ExpiryMgr.Clear();
if (_context.PerfStatsColl != null)
{
if (_context.ExpiryMgr != null)
_context.PerfStatsColl.SetExpirationIndexSize(_context.ExpiryMgr.IndexInMemorySize);
}
_context.PerfStatsColl.IncrementCountStats((long)Count);
}
_stats.UpdateCount(this.Count);
_stats.UpdateSessionCount(0);
if (_context.PerfStatsColl != null)
{
_context.PerfStatsColl.SetCacheSize(Size);
}
}
/// <summary>
/// Determines whether the cache contains a specific key.
/// </summary>
/// <param name="key">The key to locate in the cache.</param>
/// <returns>true if the cache contains an element
/// with the specified key; otherwise, false.</returns>
public sealed override bool Contains(object key, OperationContext operationContext)
{
if (ContainsInternal(key))
{
CacheEntry e = GetInternal(key, true, operationContext);
if (e == null) return false;
if (e.ExpirationHint != null && e.ExpirationHint.CheckExpired(_context))
{
ExpirationHint exh = e.ExpirationHint;
ItemRemoveReason reason = ItemRemoveReason.Expired;
Remove(key, reason, true, null, LockAccessType.IGNORE_LOCK, operationContext);
return false;
}
return true;
}
return false;
}
public sealed override bool Add(object key, ExpirationHint eh, OperationContext operationContext)
{
if (eh == null)
return false;
CacheEntry entry = GetInternal(key, false, operationContext);
bool result = AddInternal(key, eh, operationContext);
if (result)
{
eh.CacheKey = (string)key;
if (!eh.Reset(_context))
{
RemoveInternal(key, eh);
throw new OperationFailedException("Unable to initialize expiration hint");
}
_context.ExpiryMgr.UpdateIndex(key, entry.ExpirationHint);
}
if (_context.PerfStatsColl != null)
{
_context.PerfStatsColl.SetCacheSize(Size);
}
return result;
}
public override LockOptions Lock(object key, LockExpiration lockExpiration, ref object lockId, ref DateTime lockDate, OperationContext operationContext)
{
LockOptions lockInfo = new LockOptions();
CacheEntry e = GetInternal(key, false, operationContext);
if (e != null)
{
e.Lock(lockExpiration, ref lockId, ref lockDate);
lockInfo.LockDate = lockDate;
lockInfo.LockId = lockId;
return lockInfo;
}
else
{
lockInfo.LockId = lockId = null;
return lockInfo;
}
}
public override LockOptions IsLocked(object key, ref object lockId, ref DateTime lockDate, OperationContext operationContext)
{
LockOptions lockInfo = new LockOptions();
CacheEntry e = GetInternal(key, false, operationContext);
if (e != null)
{
e.IsLocked(ref lockId, ref lockDate);
lockInfo.LockDate = lockDate;
lockInfo.LockId = lockId;
return lockInfo;
}
else
{
lockId = null;
return lockInfo;
}
}
public override void UnLock(object key, object lockId, bool isPreemptive, OperationContext operationContext)
{
DateTime tmpLockDate = DateTime.Now;
CacheEntry e = GetInternal(key, false, operationContext);
if (e != null)
{
if (isPreemptive)
e.ReleaseLock();
else
{
if (e.CompareLock(lockId))
e.ReleaseLock();
}
}
}
internal override void UpdateLockInfo(object key, object lockId, DateTime lockDate, LockExpiration lockExpiration, OperationContext operationContext)
{
CacheEntry entry = GetInternal(key, false, operationContext);
if (entry != null)
{
entry.CopyLock(lockId, lockDate, lockExpiration);
}
}
/// <summary>
/// Retrieve the object from the cache. A string key is passed as parameter.
/// </summary>
/// <param name="key">key of the entry.</param>
/// <param name="lockId"></param>
/// <param name="lockDate"></param>
/// <param name="lockExpiration"></param>
/// <param name="accessType"></param>
/// <param name="operationContext"></param>
/// <returns>cache entry.</returns>
public sealed override CacheEntry Get(object key, ref object lockId, ref DateTime lockDate, LockExpiration lockExpiration, LockAccessType accessType, OperationContext operationContext)
{
return Get(key, true, ref lockId, ref lockDate, lockExpiration, accessType, operationContext);
}
private Hashtable GetFromCache(ArrayList keys, OperationContext operationContext)
{
if (keys == null) return null;
return GetEntries(keys.ToArray(), operationContext);
}
private Hashtable RemoveFromCache(ArrayList keys, bool notify, OperationContext operationContext)
{
if (keys == null) return null;
return Remove(keys.ToArray(), ItemRemoveReason.Removed, notify, operationContext);
}
/// <summary>
/// Retrieve the object from the cache. A string key is passed as parameter.
/// </summary>
/// <param name="key">key of the entry.</param>
/// <param name="isUserOperation"></param>
/// <param name="lockId"></param>
/// <param name="lockDate"></param>
/// <param name="lockExpiration"></param>
/// <param name="accessType"></param>
/// <param name="operationContext"></param>
/// <returns>cache entry.</returns>
public sealed override CacheEntry Get(object key, bool isUserOperation, ref object lockId, ref DateTime lockDate, LockExpiration lockExpiration, LockAccessType accessType, OperationContext operationContext)
{
CacheEntry e = GetInternal(key, isUserOperation, operationContext);
if (accessType != LockAccessType.IGNORE_LOCK)
{
if (e != null)
{
if (accessType == LockAccessType.DONT_ACQUIRE)
{
bool success = e.CompareLock(lockId);
if (success)
{
//explicitly set the lockdate incase of compare lock.
//compare lock does not set the lockdate.
lockDate = e.LockDate;
}
else
{
success = !e.IsLocked(ref lockId, ref lockDate);
}
if (!success) { e = null; }
}
else if (accessType == LockAccessType.ACQUIRE && !e.Lock(lockExpiration, ref lockId, ref lockDate))//internally sets the out parameters
{
e = null;
}
}
else
{
lockId = null;
}
}
ExpirationHint exh = (e == null ? null : e.ExpirationHint);
if (exh != null)
{
if (exh.CheckExpired(_context))
{
// If cache forward is set we skip the expiration.
if (!exh.NeedsReSync)
{
ItemRemoveReason reason = ItemRemoveReason.Expired;
Remove(key, reason, true, null, LockAccessType.IGNORE_LOCK, operationContext);
e = null;
}
}
if (exh.IsVariant && isUserOperation)
{
try
{
_context.ExpiryMgr.ResetVariant(exh);
}
catch (Exception ex)
{
RemoveInternal(key, ItemRemoveReason.Removed, false, operationContext);
throw ex;
}
}
}
_stats.UpdateCount(this.Count);
if (e != null)
_stats.BumpHitCount();
else
_stats.BumpMissCount();
return e;
}
/// <summary>
/// Get the item size stored in cache
/// </summary>
/// <param name="key">key</param>
/// <returns>item size</returns>
public override int GetItemSize(object key)
{
return 0;
}
/// <summary>
/// Adds a pair of key and value to the cache. Throws an exception or reports error
/// if the specified key already exists in the cache.
/// </summary>
/// <param name="key">key of the entry.</param>
/// <param name="cacheEntry">the cache entry.</param>
/// <returns>returns the result of operation.</returns>
public sealed override CacheAddResult Add(object key, CacheEntry cacheEntry, bool notify, OperationContext operationContext)
{
return Add(key, cacheEntry, notify, true, operationContext);
}
/// <summary>
/// Adds a pair of key and value to the cache. Throws an exception or reports error
/// if the specified key already exists in the cache.
/// </summary>
/// <param name="key">key of the entry.</param>
/// <param name="cacheEntry">the cache entry.</param>
/// <returns>returns the result of operation.</returns>
public override sealed CacheAddResult Add(object key, CacheEntry cacheEntry, bool notify, bool isUserOperation,
OperationContext operationContext)
{
CacheAddResult result = CacheAddResult.Failure;
if (_stateTransferKeyList != null && _stateTransferKeyList.ContainsKey(key) && notify)
return CacheAddResult.KeyExists;
result = AddInternal(key, cacheEntry, isUserOperation);
// Not enough space, evict and try again.
if (result == CacheAddResult.NeedsEviction || result == CacheAddResult.SuccessNearEviction)
{
Evict();
if (result == CacheAddResult.SuccessNearEviction)
result = CacheAddResult.Success;
}
if (result == CacheAddResult.KeyExists)
{
CacheEntry e = GetInternal(key, isUserOperation, operationContext);
if (e.ExpirationHint != null && e.ExpirationHint.CheckExpired(_context))
{
ExpirationHint exh = e.ExpirationHint;
Remove(key, ItemRemoveReason.Expired, true, null, LockAccessType.IGNORE_LOCK, operationContext);
}
}
// Operation completed!
if (result == CacheAddResult.Success)
{
if (cacheEntry.ExpirationHint != null)
{
cacheEntry.ExpirationHint.CacheKey = (string) key;
try
{
_context.ExpiryMgr.ResetHint(null, cacheEntry.ExpirationHint); //:muds
}
catch (Exception e)
{
RemoveInternal(key, ItemRemoveReason.Removed, false, operationContext);
throw e;
}
_context.ExpiryMgr.UpdateIndex(key, cacheEntry);
}
if (IsSelfInternal)
{
_context.PerfStatsColl.IncrementCountStats((long) Count);
}
_stats.UpdateCount(this.Count);
}
if (_context.PerfStatsColl != null)
{
_context.PerfStatsColl.SetCacheSize(Size);
}
return result;
}
public sealed override CacheInsResultWithEntry Insert(object key, CacheEntry cacheEntry, bool notify, object lockId, LockAccessType accessType, OperationContext operationContext)
{
return Insert(key, cacheEntry, notify, true, lockId, accessType, operationContext);
}
public override void SetStateTransferKeyList(Hashtable keylist)
{
_stateTransferKeyList = keylist;
}
public override void UnSetStateTransferKeyList()
{
_stateTransferKeyList = null;
}
/// <summary>
/// Adds a pair of key and value to the cache. If the specified key already exists
/// in the cache; it is updated, otherwise a new item is added to the cache.
/// </summary>
/// <param name="key">key of the entry.</param>
/// <param name="cacheEntry">the cache entry.</param>
/// <returns>returns the result of operation.</returns>
public sealed override CacheInsResultWithEntry Insert(object key, CacheEntry cacheEntry, bool notify, bool isUserOperation, object lockId, LockAccessType access, OperationContext operationContext)
{
CacheInsResultWithEntry result = new CacheInsResultWithEntry();
try
{
CacheEntry pe = null;
CallbackEntry cbEtnry = null;
OperationID opId = operationContext.OperatoinID;
EventId eventId = null;
EventContext eventContext = null;
pe = GetInternal(key, false, operationContext);
result.Entry = pe;
if (pe != null && access != LockAccessType.IGNORE_LOCK)
{
{
if (access == LockAccessType.RELEASE || access == LockAccessType.DONT_RELEASE)
{
if (pe.IsItemLocked() && !pe.CompareLock(lockId))
{
result.Result = CacheInsResult.ItemLocked;
result.Entry = null;
return result;
}
}
if (access == LockAccessType.DONT_RELEASE)
{
cacheEntry.CopyLock(pe.LockId, pe.LockDate, pe.LockExpiration);
}
else
{
cacheEntry.ReleaseLock();
}
}
}
ExpirationHint peExh = pe == null ? null : pe.ExpirationHint;
if (pe != null && pe.Value is CallbackEntry)
{
cbEtnry = pe.Value as CallbackEntry;
cacheEntry = CacheHelper.MergeEntries(pe, cacheEntry);
}
result.Result = InsertInternal(key, cacheEntry, isUserOperation, pe, operationContext);
if ((result.Result == CacheInsResult.Success || result.Result == CacheInsResult.SuccessNearEvicition) && _stateTransferKeyList != null &&
_stateTransferKeyList.ContainsKey(key))
{
result.Result = result.Result == CacheInsResult.Success ? CacheInsResult.SuccessOverwrite : CacheInsResult.SuccessOverwriteNearEviction;
}
// Not enough space, evict and try again.
if (result.Result == CacheInsResult.NeedsEviction || result.Result == CacheInsResult.SuccessNearEvicition
|| result.Result == CacheInsResult.SuccessOverwriteNearEviction)
{
Evict();
if (result.Result == CacheInsResult.SuccessNearEvicition) result.Result = CacheInsResult.Success;
if (result.Result == CacheInsResult.SuccessOverwriteNearEviction) result.Result = CacheInsResult.SuccessOverwrite;
}
// Operation completed!
if (result.Result == CacheInsResult.Success || result.Result == CacheInsResult.SuccessOverwrite)
{
// commented by muds
//remove the old hint from expiry index.
if (peExh != null)
_context.ExpiryMgr.RemoveFromIndex(key);
if (cacheEntry.ExpirationHint != null)
{
cacheEntry.ExpirationHint.CacheKey = (string)key;
if (isUserOperation)
{
try
{
_context.ExpiryMgr.ResetHint(peExh, cacheEntry.ExpirationHint);
}
catch (Exception e)
{
RemoveInternal(key, ItemRemoveReason.Removed, false, operationContext);
throw e;
}
}
else
{
cacheEntry.ExpirationHint.ReInitializeHint(Context);
}
_context.ExpiryMgr.UpdateIndex(key, cacheEntry);
}
if (IsSelfInternal)
{
_context.PerfStatsColl.IncrementCountStats((long)Count);
}
}
_stats.UpdateCount(this.Count);
switch (result.Result)
{
case CacheInsResult.Success:
break;
case CacheInsResult.SuccessOverwrite:
if (notify)
{
EventCacheEntry eventCacheEntry = CacheHelper.CreateCacheEventEntry(Runtime.Events.EventDataFilter.DataWithMetadata, cacheEntry); ;
EventCacheEntry oldEventCacheEntry = CacheHelper.CreateCacheEventEntry(Runtime.Events.EventDataFilter.DataWithMetadata, pe);
if (cbEtnry != null)
{
if (cbEtnry.ItemUpdateCallbackListener != null && cbEtnry.ItemUpdateCallbackListener.Count > 0)
{
if (!operationContext.Contains(OperationContextFieldName.EventContext)) //for atomic operations
{
eventId = EventId.CreateEventId(opId);
eventContext = new EventContext();
}
else //for bulk
{
eventId = ((EventContext)operationContext.GetValueByField(OperationContextFieldName.EventContext)).EventID;
}
eventContext = new EventContext();
eventId.EventType = EventType.ITEM_UPDATED_CALLBACK;
eventContext.Add(EventContextFieldName.EventID, eventId);
eventContext.Item = eventCacheEntry;
eventContext.OldItem = oldEventCacheEntry;
NotifyCustomUpdateCallback(key, cbEtnry.ItemUpdateCallbackListener, false, (OperationContext)operationContext.Clone(), eventContext);
}
}
}
break;
}
}
finally
{
}
if (_context.PerfStatsColl != null)
{
_context.PerfStatsColl.SetCacheSize(Size);
}
return result;
}
/// <summary>
/// Removes the object and key pair from the cache. The key is specified as parameter.
/// Moreover it take a removal reason and a boolean specifying if a notification should
/// be raised.
/// </summary>
/// <param name="key">key of the entry.</param>
/// <param name="removalReason">reason for the removal.</param>
/// <param name="notify">boolean specifying to raise the event.</param>
/// <param name="lockId"></param>
/// <param name="accessType"></param>
/// <param name="operationContext"></param>
/// <returns>item value</returns>
public sealed override CacheEntry Remove(object key, ItemRemoveReason removalReason, bool notify, object lockId, LockAccessType accessType, OperationContext operationContext)
{
return Remove(key, removalReason, notify, true, lockId, accessType, operationContext);
}
/// <summary>
/// Removes the object and key pair from the cache. The key is specified as parameter.
/// Moreover it take a removal reason and a boolean specifying if a notification should
/// be raised.
/// </summary>
/// <param name="key">key of the entry.</param>
/// <param name="removalReason">reason for the removal.</param>
/// <param name="notify">boolean specifying to raise the event.</param>
/// <param name="isUserOperation"></param>
/// <param name="lockId"></param>
/// <param name="accessType"></param>
/// <param name="operationContext"></param>
/// <returns>item value</returns>
public override CacheEntry Remove(object key, ItemRemoveReason removalReason, bool notify, bool isUserOperation, object lockId, LockAccessType accessType, OperationContext operationContext)
{
CacheEntry e = null;
CacheEntry pe = null;
{
object actualKey = key;
if (key is object[])
{
actualKey = ((object[])key)[0];
}
if (accessType != LockAccessType.IGNORE_LOCK)
{
pe = GetInternal(actualKey, false, operationContext);
if (pe != null)
{
if (pe.IsItemLocked() && !pe.CompareLock(lockId))
{
throw new LockingException("Item is locked.");
}
}
}
e = RemoveInternal(actualKey, removalReason, isUserOperation, operationContext);
EventId eventId = null;
EventContext eventContext = null;
OperationID opId = operationContext.OperatoinID;
if (e != null)
{
if (_stateTransferKeyList != null && _stateTransferKeyList.ContainsKey(key))
_stateTransferKeyList.Remove(key);
// commented by muds
try
{
if (e.ExpirationHint != null)
{
_context.ExpiryMgr.RemoveFromIndex(key);
((IDisposable)e.ExpirationHint).Dispose();
}
}
catch (Exception ex)
{
NCacheLog.Error("LocalCacheBase.Remove(object, ItemRemovedReason, bool):", ex.ToString());
}
if (IsSelfInternal)
{
// Disposed the one and only cache entry.
((IDisposable)e).Dispose();
if (removalReason == ItemRemoveReason.Expired)
{
_context.PerfStatsColl.IncrementExpiryPerSecStats();
}
else if (!_context.CacheImpl.IsEvictionAllowed && removalReason == ItemRemoveReason.Underused)
{
_context.PerfStatsColl.IncrementEvictPerSecStats();
}
_context.PerfStatsColl.IncrementCountStats((long)Count);
}
if (notify)
{
CallbackEntry cbEtnry = e.Value as CallbackEntry;// e.DeflattedValue(_context.SerializationContext);
if (cbEtnry != null && cbEtnry.ItemRemoveCallbackListener != null && cbEtnry.ItemRemoveCallbackListener.Count > 0)
{
//generate event id
if (!operationContext.Contains(OperationContextFieldName.EventContext)) //for atomic operations
{
eventId = EventId.CreateEventId(opId);
}
else //for bulk
{
eventId = ((EventContext)operationContext.GetValueByField(OperationContextFieldName.EventContext)).EventID;
}
eventId.EventType = EventType.ITEM_REMOVED_CALLBACK;
eventContext = new EventContext();
eventContext.Add(EventContextFieldName.EventID, eventId);
EventCacheEntry eventCacheEntry = CacheHelper.CreateCacheEventEntry(cbEtnry.ItemRemoveCallbackListener, e);
eventContext.Item = eventCacheEntry;
eventContext.Add(EventContextFieldName.ItemRemoveCallbackList, cbEtnry.ItemRemoveCallbackListener.Clone());
//Will always reaise the whole entry for old clients
NotifyCustomRemoveCallback(actualKey, e, removalReason, false, (OperationContext)operationContext.Clone(), eventContext);
}
}
}
else if (_stateTransferKeyList != null && _stateTransferKeyList.ContainsKey(key))
{
_stateTransferKeyList.Remove(key);
}
}
_stats.UpdateCount(this.Count);
if (_context.PerfStatsColl != null)
{
_context.PerfStatsColl.SetCacheSize(Size);
}
return e;
}
public override object RemoveSync(object[] keys, ItemRemoveReason reason, bool notify, OperationContext operationContext)
{
if (_parentCache != null)
{
return _parentCache.RemoveSync(keys, reason, notify, operationContext);
}
return null;
}
public sealed override QueryResultSet Search(string query, IDictionary values, OperationContext operationContext)
{
try
{
_context.PerfStatsColl.MsecPerQueryExecutionTimeBeginSample();
QueryContext queryContext = PrepareSearch(query, values);
switch (queryContext.ResultSet.Type)
{
case QueryType.AggregateFunction:
break;
default:
queryContext.Tree.Reduce();
queryContext.CacheContext = _context.SerializationContext;
queryContext.ResultSet.SearchKeysResult = queryContext.Tree.LeftList;
break;
}
_context.PerfStatsColl.MsecPerQueryExecutionTimeEndSample();
if (queryContext.ResultSet != null)
{
long totalRowReturn = 0;
if (queryContext.ResultSet.SearchEntriesResult != null)
totalRowReturn = queryContext.ResultSet.SearchEntriesResult.Count;
else if (queryContext.ResultSet.SearchKeysResult != null)
totalRowReturn = queryContext.ResultSet.SearchKeysResult.Count;
_context.PerfStatsColl.IncrementAvgQuerySize(totalRowReturn);
}
_context.PerfStatsColl.IncrementQueryPerSec();
return queryContext.ResultSet;
}
catch (Parser.ParserException pe)
{
RemoveReduction(query);
throw new Runtime.Exceptions.ParserException(pe.Message, pe);
}
catch (Exception ex)
{
throw ex;
}
}
public sealed override QueryResultSet SearchEntries(string query, IDictionary values, OperationContext operationContext)
{
try
{
_context.PerfStatsColl.MsecPerQueryExecutionTimeBeginSample();
QueryContext queryContext = PrepareSearch(query, values);
switch (queryContext.ResultSet.Type)
{
case QueryType.AggregateFunction:
break;
default:
Hashtable result = new Hashtable();
ICollection keyList = null;
ArrayList updatekeys =null;
queryContext.Tree.Reduce();
queryContext.CacheContext = _context.SerializationContext;
if (queryContext.Tree.LeftList.Count > 0)
keyList = queryContext.Tree.LeftList;
if (keyList != null && keyList.Count > 0)
{
object[] keys = new object[keyList.Count];
keyList.CopyTo(keys, 0);
IDictionary tmp = GetEntries(keys, operationContext);
IDictionaryEnumerator ide = tmp.GetEnumerator();
CompressedValueEntry cmpEntry = null;
while (ide.MoveNext())
{
CacheEntry entry = ide.Value as CacheEntry;
if (entry != null)
{
cmpEntry = new CompressedValueEntry();
cmpEntry.Value = entry.Value;
if (cmpEntry.Value is CallbackEntry)
cmpEntry.Value = ((CallbackEntry)cmpEntry.Value).Value;
cmpEntry.Flag = ((CacheEntry)ide.Value).Flag;
result[ide.Key] = cmpEntry;
if ((entry.ExpirationHint != null && entry.ExpirationHint.IsVariant))
{
if (updatekeys == null)
updatekeys = new ArrayList();
updatekeys.Add(ide.Key);
}
}
}
}
queryContext.ResultSet.Type = QueryType.SearchEntries;
queryContext.ResultSet.SearchEntriesResult = result;
queryContext.ResultSet.UpdateIndicesKeys = updatekeys;
break;
}
_context.PerfStatsColl.MsecPerQueryExecutionTimeEndSample();
if (queryContext.ResultSet != null)
{
long totalRowReturn = 0;
if (queryContext.ResultSet.SearchEntriesResult != null)
totalRowReturn = queryContext.ResultSet.SearchEntriesResult.Count;
else if (queryContext.ResultSet.SearchKeysResult != null)
totalRowReturn = queryContext.ResultSet.SearchKeysResult.Count;
_context.PerfStatsColl.IncrementAvgQuerySize(totalRowReturn);
}
_context.PerfStatsColl.IncrementQueryPerSec();
return queryContext.ResultSet;
}
catch (Parser.ParserException pe)
{
RemoveReduction(query);
throw new Runtime.Exceptions.ParserException(pe.Message, pe);
}
catch (Exception ex)
{
throw ex;
}
}
private QueryContext PrepareSearch(string query, IDictionary values)
{
Reduction currentQueryReduction = null;
try
{
currentQueryReduction = GetPreparedReduction(query);
if (currentQueryReduction.Tokens[0].ToString().ToLower() != "select")
throw new Parser.ParserException("Only select query is supported");
return SearchInternal(currentQueryReduction.Tag as Predicate, values);
}
catch (Parser.ParserException pe)
{
RemoveReduction(query);
throw new Runtime.Exceptions.ParserException(pe.Message, pe);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region / --- Bulk operations --- /
/// <summary>
/// Determines whether the cache contains the given keys.
/// </summary>
/// <param name="keys">The keys to locate in the cache.</param>
/// <returns>list of keys found in the cache</returns>
public sealed override Hashtable Contains(object[] keys, OperationContext operationContext)
{
Hashtable tbl = new Hashtable();
ArrayList successfulKeys = new ArrayList();
ArrayList failedKeys = new ArrayList();
for (int i = 0; i < keys.Length; i++)
{
try
{
bool result = Contains(keys[i], operationContext);
if (result)
{
successfulKeys.Add(keys[i]);
}
}
catch (StateTransferException se)
{
failedKeys.Add(keys[i]);
}
}
if (successfulKeys.Count > 0)
tbl["items-found"] = successfulKeys;
if (failedKeys.Count > 0)
tbl["items-transfered"] = failedKeys;
return tbl;
}
/// <summary>
/// Retrieve the objects from the cache.
/// An array of keys is passed as parameter.
/// </summary>
/// <param name="keys">keys of the entries.</param>
/// <returns>key and entry pairs.</returns>
public sealed override Hashtable Get(object[] keys, OperationContext operationContext)
{
Hashtable entries = new Hashtable();
CacheEntry e = null;
for (int i = 0; i < keys.Length; i++)
{
try
{
if(operationContext != null)
{
operationContext.RemoveValueByField(OperationContextFieldName.EventContext);
OperationID opId = operationContext.OperatoinID;
//generate EventId
EventId eventId = EventId.CreateEventId(opId);
eventId.EventUniqueID = opId.OperationId;
eventId.OperationCounter = opId.OpCounter;
eventId.EventCounter = i;
EventContext eventContext = new EventContext();
eventContext.Add(EventContextFieldName.EventID, eventId);
operationContext.Add(OperationContextFieldName.EventContext, eventContext);
}
e = Get(keys[i], operationContext);
if (e != null)
{
entries[keys[i]] = e;
}
}
catch (StateTransferException se)
{
entries[keys[i]] = se;
}
}
return entries;
}
/// <summary>
/// For SearchEntries method, we need to get entries from cache for searched keys.
/// Previously it was accomplished using normal get operation. But this special
/// method is required because normal get operation throws 'StateTransferException'
/// during state transfer which is not required in Search methods because
/// search is broadcasted to all nodes and each node can send its data back no matter
/// if state transfer is under process.
/// </summary>
/// <param name="keys"></param>
/// <returns></returns>
private Hashtable GetEntries(object[] keys, OperationContext operationContext)
{
Hashtable entries = new Hashtable();
CacheEntry e = null;
for (int i = 0; i < keys.Length; i++)
{
try
{
e = GetEntryInternal(keys[i], true);
if (e != null)
{
ExpirationHint exh = e.ExpirationHint;
if (exh != null)
{
if (exh.CheckExpired(_context))
{
ItemRemoveReason reason = ItemRemoveReason.Expired;
// If cache forward is set we skip the expiration.
if (!exh.NeedsReSync)
{
Remove(keys[i], reason, true, null, LockAccessType.IGNORE_LOCK, operationContext);
e = null;
}
}
if (exh.IsVariant)
{
try
{
_context.ExpiryMgr.ResetVariant(exh);
}
catch (Exception ex)
{
RemoveInternal(keys[i], ItemRemoveReason.Removed, false, operationContext);
throw ex;
}
}
}
if(e!=null)
entries[keys[i]] = e;
}
}
catch (Exception ex)
{
entries[keys[i]] = ex;
}
}
return entries;
}
/// <summary>
/// Adds key and value pairs to the cache. Throws an exception or returns the
/// list of keys that failed to add in the cache.
/// </summary>
/// <param name="keys">keys of the entries.</param>
/// <param name="cacheEntries">the cache entries.</param>
/// <returns>List of keys that are added or that alredy exists in the cache and their status.</returns>
public sealed override Hashtable Add(object[] keys, CacheEntry[] cacheEntries, bool notify, OperationContext operationContext)
{
Hashtable table = new Hashtable();
EventContext eventContext = null;
EventId eventId = null;
OperationID opId = operationContext.OperatoinID;
for (int i = 0; i < keys.Length; i++)
{
try
{
operationContext.RemoveValueByField(OperationContextFieldName.EventContext);
if (notify)
{
//generate EventId
eventId = new EventId();
eventId.EventUniqueID = opId.OperationId;
eventId.OperationCounter = opId.OpCounter;
eventId.EventCounter = i;
eventContext = new EventContext();
eventContext.Add(EventContextFieldName.EventID, eventId);
operationContext.Add(OperationContextFieldName.EventContext, eventContext);
}
CacheAddResult result = Add(keys[i], cacheEntries[i], notify, operationContext);
table[keys[i]] = result;
}
catch (Exceptions.StateTransferException se)
{
table[keys[i]] = se;
}
catch (Exception inner)
{
table[keys[i]] = new OperationFailedException(inner.Message, inner);
}
finally
{
operationContext.RemoveValueByField(OperationContextFieldName.EventContext);
}
}
if (_context.PerfStatsColl != null)
{
_context.PerfStatsColl.SetCacheSize(Size);
}
return table;
}
/// <summary>
/// Adds key and value pairs to the cache. If any of the specified keys
/// already exists in the cache; it is updated, otherwise a new item is
/// added to the cache.
/// </summary>
/// <param name="keys">keys of the entries.</param>
/// <param name="cacheEntry">the cache entries.</param>
/// <returns>returns keys that are added or updated successfully and their status.</returns>
public sealed override Hashtable Insert(object[] keys, CacheEntry[] cacheEntries, bool notify, OperationContext operationContext)
{
Hashtable table = new Hashtable();
EventContext eventContext = null;
EventId eventId = null;
OperationID opId = operationContext.OperatoinID;
for (int i = 0; i < keys.Length; i++)
{
try
{
operationContext.RemoveValueByField(OperationContextFieldName.EventContext);
if (notify)
{
//generate EventId
eventId = new EventId();
eventId.EventUniqueID = opId.OperationId;
eventId.OperationCounter = opId.OpCounter;
eventId.EventCounter = i;
eventContext = new EventContext();
eventContext.Add(EventContextFieldName.EventID, eventId);
operationContext.Add(OperationContextFieldName.EventContext, eventContext);
}
CacheInsResultWithEntry result = Insert(keys[i], cacheEntries[i], notify, null, LockAccessType.IGNORE_LOCK, operationContext);
table.Add(keys[i], result);
}
catch (Exception e)
{
table[keys[i]] = e;
}
finally
{
operationContext.RemoveValueByField(OperationContextFieldName.EventContext);
}
}
if (_context.PerfStatsColl != null)
{
_context.PerfStatsColl.SetCacheSize(Size);
}
return table;
}
/// <summary>
/// Removes key and value pairs from the cache. The keys are specified as parameter.
/// Moreover it take a removal reason and a boolean specifying if a notification should
/// be raised.
/// </summary>
/// <param name="keys">keys of the entry.</param>
/// <param name="removalReason">reason for the removal.</param>
/// <param name="notify">boolean specifying to raise the event.</param>
/// <returns>list of removed keys</returns>
public sealed override Hashtable Remove(object[] keys, ItemRemoveReason removalReason, bool notify, OperationContext operationContext)
{
return Remove(keys, removalReason, notify, true, operationContext);
}
/// <summary>
/// Removes key and value pairs from the cache. The keys are specified as parameter.
/// Moreover it take a removal reason and a boolean specifying if a notification should
/// be raised.
/// </summary>
/// <param name="keys">keys of the entry.</param>
/// <param name="removalReason">reason for the removal.</param>
/// <param name="notify">boolean specifying to raise the event.</param>
/// <returns>list of removed keys</returns>
public override Hashtable Remove(object[] keys, ItemRemoveReason removalReason, bool notify, bool isUserOperation, OperationContext operationContext)
{
Hashtable table = new Hashtable();
EventContext eventContext = null;
EventId eventId = null;
OperationID opId = operationContext.OperatoinID;
for (int i = 0; i < keys.Length; i++)
{
try
{
operationContext.RemoveValueByField(OperationContextFieldName.EventContext);
if (notify)
{
//generate EventId
eventId = new EventId();
eventId.EventUniqueID = opId.OperationId;
eventId.OperationCounter = opId.OpCounter;
eventId.EventCounter = i;
eventContext = new EventContext();
eventContext.Add(EventContextFieldName.EventID, eventId);
operationContext.Add(OperationContextFieldName.EventContext, eventContext);
}
CacheEntry e = Remove(keys[i], removalReason, notify, null, LockAccessType.IGNORE_LOCK, operationContext);
if (e != null)
{
table[keys[i]] = e;
}
}
catch (StateTransferException e)
{
table[keys[i]] = e;
}
finally
{
operationContext.RemoveValueByField(OperationContextFieldName.EventContext);
}
}
if (_context.PerfStatsColl != null)
{
_context.PerfStatsColl.SetCacheSize(Size);
}
return table;
}
#endregion
#region --- LocalCacheBase.XXXXInternal ----
/// <summary>
/// Removes all entries from the cache.
/// </summary>
internal virtual void ClearInternal()
{
}
/// <summary>
/// Determines whether the cache contains a specific key.
/// </summary>
/// <param name="key">The key to locate in the cache.</param>
/// <returns>true if the cache contains an element with the specified key; otherwise, false.</returns>
internal virtual bool ContainsInternal(object key)
{
return false;
}
/// <summary>
/// Retrieve the object from the cache. A string key is passed as parameter.
/// </summary>
/// <param name="key">key of the entry.</param>
/// <returns>cache entry.</returns>
internal virtual CacheEntry GetInternal(object key, bool isUserOperation, OperationContext operationContext)
{
return null;
}
/// <summary>
/// Adds a pair of key and value to the cache. Throws an exception or reports error
/// if the specified key already exists in the cache.
/// </summary>
/// <param name="key">key of the entry.</param>
/// <param name="cacheEntry">the cache entry.</param>
/// <returns>returns the result of operation.</returns>
internal virtual CacheAddResult AddInternal(object key, CacheEntry cacheEntry, bool isUserOperation)
{
return CacheAddResult.Failure;
}
internal virtual bool AddInternal(object key, ExpirationHint eh, OperationContext operationContext)
{
return false;
}
/// <summary>
/// Adds a pair of key and value to the cache. If the specified key already exists
/// in the cache; it is updated, otherwise a new item is added to the cache.
/// </summary>
/// <param name="key">key of the entry.</param>
/// <param name="cacheEntry">the cache entry.</param>
/// <returns>returns the result of operation.</returns>
internal virtual CacheInsResult InsertInternal(object key, CacheEntry cacheEntry, bool isUserOperation, CacheEntry oldEntry, OperationContext operationContext)
{
return CacheInsResult.Failure;
}
/// <summary>
/// Removes the object and key pair from the cache. The key is specified as parameter.
/// Moreover it take a removal reason and a boolean specifying if a notification should
/// be raised.
/// </summary>
/// <param name="key">key of the entry.</param>
/// <param name="removalReason">reason for the removal.</param>
/// <param name="notify">boolean specifying to raise the event.</param>
/// <returns>item value</returns>
internal virtual CacheEntry RemoveInternal(object key, ItemRemoveReason removalReason, bool isUserOperation, OperationContext operationContext)
{
return null;
}
/// <summary>
/// Remove an ExpirationHint against the given key
/// Key must already exists in the cache
/// </summary>
/// <param name="key"></param>
/// <param name="eh"></param>
/// <returns></returns>
internal virtual bool RemoveInternal(object key, ExpirationHint eh)
{
return false;
}
internal virtual QueryContext SearchInternal(Predicate pred, IDictionary values)
{
return null;
}
internal virtual IDictionary SearchEntriesInternal(Predicate pred, IDictionary values)
{
return null;
}
internal virtual CacheEntry GetEntryInternal(object key, bool isUserOperation)
{
return null;
}
public virtual void Evict()
{
}
#endregion
#region/ --- Keybased Notification Registration --- /
public override void RegisterKeyNotification(string[] keys, CallbackInfo updateCallback, CallbackInfo removeCallback, OperationContext operationContext)
{
if (keys != null)
{
foreach (string key in keys)
RegisterKeyNotification(key, updateCallback, removeCallback, operationContext);
}
}
/// <summary>
/// Registers either an update or remove callback with an existing item.
/// </summary>
/// <param name="key">for which notificatin is to be registered</param>
/// <param name="updateCallback">ItemUpdate callback to be registered.</param>
/// <param name="removeCallback">ItemRemove callback to be registered.</param>
public override void RegisterKeyNotification(string key, CallbackInfo updateCallback, CallbackInfo removeCallback, OperationContext operationContext)
{
CacheEntry entry = Get(key, operationContext);
if (entry != null)
{
entry.AddCallbackInfo(updateCallback, removeCallback);
}
}
public override void UnregisterKeyNotification(string[] keys, CallbackInfo updateCallback, CallbackInfo removeCallback, OperationContext operationContext)
{
if (keys != null)
{
foreach (string key in keys)
UnregisterKeyNotification(key, updateCallback, removeCallback, operationContext);
}
}
/// <summary>
/// Unregisters either an update or remove callback with an existing item.
/// </summary>
/// <param name="key">for which notificatin is to be unregistered</param>
/// <param name="updateCallback">ItemUpdate callback to be unregistered.</param>
/// <param name="removeCallback">ItemRemove callback to be unregistered.</param>
public override void UnregisterKeyNotification(string key, CallbackInfo updateCallback, CallbackInfo removeCallback, OperationContext operationContext)
{
try
{
CacheEntry entry = Get(key, operationContext);
if (entry != null)
{
entry.RemoveCallbackInfo(updateCallback, removeCallback);
}
}
catch (StateTransferException)
{
//ignore state transfer expcetion
}
}
#endregion
#region / --- PreparedQueryTable operations --- /
/// <summary>
/// Matches the query string in the PreparedQueryTable. If the query does not already exist
/// in the PreparedQueryTable then it is parsed and the result is stored in the PreparedQueryTable and
/// return.
/// Throws ArgumentException of the query is not successfully parsed.
/// </summary>
/// <param name="query">The query string.</param>
/// <returns>The Reduction for the query specified.</returns>
private Reduction GetPreparedReduction(string query)
{
Reduction reduction = null;
lock (_preparedQueryTable.SyncRoot)
{
if (!_preparedQueryTable.ContainsKey(query))
{
ParserHelper parser = new ParserHelper(InternalCache.NCacheLog);
if (parser.Parse(query) == ParseMessage.Accept)
{
reduction = parser.CurrentReduction;
AddPreparedReduction(query, reduction);
}
else
{
throw new Parser.ParserException("Incorrect query format");
}
}
else
reduction = (Reduction)_preparedQueryTable[query];
}
return reduction;
}
private void RemoveReduction(string query)
{
lock (_preparedQueryTable.SyncRoot)
{
_preparedQueryTable.Remove(query);
}
}
/// <summary>
/// Adds the query to the PreparedQueryTable. This method also does the eviction
/// if PreparedQueryTable count is greater than eviction ratio.
/// This method is only called from GetPreparedReduction(string).
/// </summary>
/// <param name="query">The query to add in the table.</param>
/// <param name="currentReduction">The successful query result in the form of Reduction.</param>
private void AddPreparedReduction(string query, Reduction currentReduction)
{
_preparedQueryTable.Add(new QueryIdentifier(query), currentReduction);
if (_preparedQueryTable.Count > _preparedQueryTableSize)
{
ArrayList list = new ArrayList(_preparedQueryTable.Keys);
list.Sort();
int evictCount = (_preparedQueryTable.Count * _preparedQueryEvictionPercentage) / 100;
for (int i = 0; i < evictCount; i++)
_preparedQueryTable.Remove(list[i]);
}
}
#endregion
}
}
| 40.066204 | 214 | 0.518326 | [
"Apache-2.0"
] | NCacheDev/NCache | Src/NCCache/Caching/Topologies/Local/LocalCacheBase.cs | 63,545 | C# |
// <auto-generated />
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Storage.Internal;
using System;
using VinylStop.Data;
namespace VinylStop.Migrations
{
[DbContext(typeof(AppDbContext))]
partial class AppDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.0.2-rtm-10011")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken();
b.Property<string>("Name")
.HasMaxLength(256);
b.Property<string>("NormalizedName")
.HasMaxLength(256);
b.HasKey("Id");
b.HasIndex("NormalizedName")
.IsUnique()
.HasName("RoleNameIndex")
.HasFilter("[NormalizedName] IS NOT NULL");
b.ToTable("AspNetRoles");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("ClaimType");
b.Property<string>("ClaimValue");
b.Property<string>("RoleId")
.IsRequired();
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AspNetRoleClaims");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("ClaimType");
b.Property<string>("ClaimValue");
b.Property<string>("UserId")
.IsRequired();
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AspNetUserClaims");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.Property<string>("LoginProvider");
b.Property<string>("ProviderKey");
b.Property<string>("ProviderDisplayName");
b.Property<string>("UserId")
.IsRequired();
b.HasKey("LoginProvider", "ProviderKey");
b.HasIndex("UserId");
b.ToTable("AspNetUserLogins");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.Property<string>("UserId");
b.Property<string>("RoleId");
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId");
b.ToTable("AspNetUserRoles");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.Property<string>("UserId");
b.Property<string>("LoginProvider");
b.Property<string>("Name");
b.Property<string>("Value");
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AspNetUserTokens");
});
modelBuilder.Entity("VinylStop.Data.Models.Album", b =>
{
b.Property<int>("AlbumId")
.ValueGeneratedOnAdd();
b.Property<string>("AlbumLabel")
.IsRequired();
b.Property<string>("Artist")
.IsRequired();
b.Property<int>("CategoryId");
b.Property<string>("ImageUrl");
b.Property<int>("InStock");
b.Property<bool>("IsPreferredAlbum");
b.Property<string>("LongDescription")
.IsRequired();
b.Property<string>("Name")
.IsRequired();
b.Property<decimal>("Price");
b.Property<int>("YearReleased");
b.HasKey("AlbumId");
b.HasIndex("CategoryId");
b.ToTable("Albums");
});
modelBuilder.Entity("VinylStop.Data.Models.ApplicationUser", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("AccessFailedCount");
b.Property<string>("CartId");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken();
b.Property<string>("Email")
.HasMaxLength(256);
b.Property<bool>("EmailConfirmed");
b.Property<string>("FirstName")
.IsRequired();
b.Property<string>("LastName")
.IsRequired();
b.Property<bool>("LockoutEnabled");
b.Property<DateTimeOffset?>("LockoutEnd");
b.Property<string>("NormalizedEmail")
.HasMaxLength(256);
b.Property<string>("NormalizedUserName")
.HasMaxLength(256);
b.Property<string>("PasswordHash");
b.Property<string>("PhoneNumber");
b.Property<bool>("PhoneNumberConfirmed");
b.Property<string>("SecurityStamp");
b.Property<bool>("TwoFactorEnabled");
b.Property<string>("UserName")
.HasMaxLength(256);
b.HasKey("Id");
b.HasIndex("NormalizedEmail")
.HasName("EmailIndex");
b.HasIndex("NormalizedUserName")
.IsUnique()
.HasName("UserNameIndex")
.HasFilter("[NormalizedUserName] IS NOT NULL");
b.ToTable("AspNetUsers");
});
modelBuilder.Entity("VinylStop.Data.Models.Category", b =>
{
b.Property<int>("CategoryId")
.ValueGeneratedOnAdd();
b.Property<string>("CategoryName");
b.Property<string>("Description");
b.HasKey("CategoryId");
b.ToTable("Categories");
});
modelBuilder.Entity("VinylStop.Data.Models.Order", b =>
{
b.Property<int>("OrderId")
.ValueGeneratedOnAdd();
b.Property<string>("AddressLine1")
.IsRequired()
.HasMaxLength(100);
b.Property<string>("AddressLine2");
b.Property<string>("City")
.IsRequired()
.HasMaxLength(50);
b.Property<string>("Country")
.IsRequired()
.HasMaxLength(50);
b.Property<DateTime>("DatePlaced");
b.Property<string>("Email")
.IsRequired()
.HasMaxLength(50);
b.Property<string>("FirstName")
.IsRequired()
.HasMaxLength(50);
b.Property<string>("LastName")
.IsRequired()
.HasMaxLength(50);
b.Property<decimal>("OrderTotal");
b.Property<string>("PhoneNumber")
.IsRequired()
.HasMaxLength(25);
b.Property<string>("State")
.IsRequired()
.HasMaxLength(10);
b.Property<string>("UserId");
b.Property<string>("ZipCode")
.IsRequired()
.HasMaxLength(10);
b.HasKey("OrderId");
b.ToTable("Orders");
});
modelBuilder.Entity("VinylStop.Data.Models.OrderDetail", b =>
{
b.Property<int>("OrderDetailId")
.ValueGeneratedOnAdd();
b.Property<int>("AlbumId");
b.Property<int>("Amount");
b.Property<int>("OrderId");
b.Property<decimal>("Price");
b.HasKey("OrderDetailId");
b.HasIndex("AlbumId");
b.HasIndex("OrderId");
b.ToTable("OrderDetails");
});
modelBuilder.Entity("VinylStop.Data.Models.ShoppingCartItem", b =>
{
b.Property<int>("ShoppingCartItemId")
.ValueGeneratedOnAdd();
b.Property<int?>("AlbumId");
b.Property<int>("Amount");
b.Property<string>("ShoppingCartId");
b.HasKey("ShoppingCartItemId");
b.HasIndex("AlbumId");
b.ToTable("CartItems");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.HasOne("VinylStop.Data.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.HasOne("VinylStop.Data.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("VinylStop.Data.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.HasOne("VinylStop.Data.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("VinylStop.Data.Models.Album", b =>
{
b.HasOne("VinylStop.Data.Models.Category", "Category")
.WithMany("Albums")
.HasForeignKey("CategoryId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("VinylStop.Data.Models.OrderDetail", b =>
{
b.HasOne("VinylStop.Data.Models.Album", "Album")
.WithMany()
.HasForeignKey("AlbumId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("VinylStop.Data.Models.Order", "Order")
.WithMany("OrderLines")
.HasForeignKey("OrderId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("VinylStop.Data.Models.ShoppingCartItem", b =>
{
b.HasOne("VinylStop.Data.Models.Album", "Album")
.WithMany()
.HasForeignKey("AlbumId");
});
#pragma warning restore 612, 618
}
}
}
| 32.743902 | 117 | 0.447747 | [
"MIT"
] | davidm5963/Vinyl-Stop | VinylStop/Migrations/AppDbContextModelSnapshot.cs | 13,427 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.Core;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Azure.Core.Pipeline;
namespace Azure.Identity
{
/// <summary>
/// Provides a default <see cref="TokenCredential"/> authentication flow for applications that will be deployed to Azure. The following credential
/// types if enabled will be tried, in order:
/// <list type="bullet">
/// <item><description><see cref="EnvironmentCredential"/></description></item>
/// <item><description><see cref="ManagedIdentityCredential"/></description></item>
/// <item><description><see cref="SharedTokenCacheCredential"/></description></item>
/// <item><description><see cref="VisualStudioCredential"/></description></item>
/// <item><description><see cref="VisualStudioCodeCredential"/></description></item>
/// <item><description><see cref="AzureCliCredential"/></description></item>
/// <item><description><see cref="AzurePowerShellCredential"/></description></item>
/// <item><description><see cref="InteractiveBrowserCredential"/></description></item>
/// </list>
/// Consult the documentation of these credential types for more information on how they attempt authentication.
/// </summary>
/// <remarks>
/// Note that credentials requiring user interaction, such as the <see cref="InteractiveBrowserCredential"/>, are not included by default. Callers must explicitly enable this when
/// constructing the <see cref="DefaultAzureCredential"/> either by setting the includeInteractiveCredentials parameter to true, or the setting the
/// <see cref="DefaultAzureCredentialOptions.ExcludeInteractiveBrowserCredential"/> property to false when passing <see cref="DefaultAzureCredentialOptions"/>.
/// </remarks>
/// <example>
/// <para>
/// This example demonstrates authenticating the BlobClient from the Azure.Storage.Blobs client library using the DefaultAzureCredential,
/// deployed to an Azure resource with a user assigned managed identity configured.
/// </para>
/// <code snippet="Snippet:UserAssignedManagedIdentity" language="csharp">
/// // When deployed to an azure host, the default azure credential will authenticate the specified user assigned managed identity.
///
/// string userAssignedClientId = "<your managed identity client Id>";
/// var credential = new DefaultAzureCredential(new DefaultAzureCredentialOptions { ManagedIdentityClientId = userAssignedClientId });
///
/// var blobClient = new BlobClient(new Uri("https://myaccount.blob.core.windows.net/mycontainer/myblob"), credential);
/// </code>
/// </example>
public class DefaultAzureCredential : TokenCredential
{
private const string Troubleshooting = "See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/defaultazurecredential/troubleshoot";
private const string DefaultExceptionMessage = "DefaultAzureCredential failed to retrieve a token from the included credentials. " + Troubleshooting;
private const string UnhandledExceptionMessage = "DefaultAzureCredential authentication failed due to an unhandled exception: ";
private static readonly TokenCredential[] s_defaultCredentialChain = GetDefaultAzureCredentialChain(new DefaultAzureCredentialFactory(null), new DefaultAzureCredentialOptions());
private readonly CredentialPipeline _pipeline;
private readonly AsyncLockWithValue<TokenCredential> _credentialLock;
private TokenCredential[] _sources;
internal DefaultAzureCredential() : this(false) { }
/// <summary>
/// Creates an instance of the DefaultAzureCredential class.
/// </summary>
/// <param name="includeInteractiveCredentials">Specifies whether credentials requiring user interaction will be included in the default authentication flow.</param>
public DefaultAzureCredential(bool includeInteractiveCredentials = false)
: this(includeInteractiveCredentials ? new DefaultAzureCredentialOptions { ExcludeInteractiveBrowserCredential = false } : null)
{
}
/// <summary>
/// Creates an instance of the <see cref="DefaultAzureCredential"/> class.
/// </summary>
/// <param name="options">Options that configure the management of the requests sent to Azure Active Directory services, and determine which credentials are included in the <see cref="DefaultAzureCredential"/> authentication flow.</param>
public DefaultAzureCredential(DefaultAzureCredentialOptions options)
// we call ValidateAuthoriyHostOption to validate that we have a valid authority host before constructing the DAC chain
// if we don't validate this up front it will end up throwing an exception out of a static initializer which obscures the error.
: this(new DefaultAzureCredentialFactory(ValidateAuthorityHostOption(options)), options)
{
}
internal DefaultAzureCredential(DefaultAzureCredentialFactory factory, DefaultAzureCredentialOptions options)
{
_pipeline = factory.Pipeline;
_sources = GetDefaultAzureCredentialChain(factory, options);
_credentialLock = new AsyncLockWithValue<TokenCredential>();
}
/// <summary>
/// Sequentially calls <see cref="TokenCredential.GetToken"/> on all the included credentials in the order <see cref="EnvironmentCredential"/>, <see cref="ManagedIdentityCredential"/>, <see cref="SharedTokenCacheCredential"/>,
/// and <see cref="InteractiveBrowserCredential"/> returning the first successfully obtained <see cref="AccessToken"/>. This method is called automatically by Azure SDK client libraries. You may call this method directly, but you must also handle token caching and token refreshing.
/// </summary>
/// <remarks>
/// Note that credentials requiring user interaction, such as the <see cref="InteractiveBrowserCredential"/>, are not included by default.
/// </remarks>
/// <param name="requestContext">The details of the authentication request.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> controlling the request lifetime.</param>
/// <returns>The first <see cref="AccessToken"/> returned by the specified sources. Any credential which raises a <see cref="CredentialUnavailableException"/> will be skipped.</returns>
public override AccessToken GetToken(TokenRequestContext requestContext, CancellationToken cancellationToken = default)
{
return GetTokenImplAsync(false, requestContext, cancellationToken).EnsureCompleted();
}
/// <summary>
/// Sequentially calls <see cref="TokenCredential.GetToken"/> on all the included credentials in the order <see cref="EnvironmentCredential"/>, <see cref="ManagedIdentityCredential"/>, <see cref="SharedTokenCacheCredential"/>,
/// and <see cref="InteractiveBrowserCredential"/> returning the first successfully obtained <see cref="AccessToken"/>. This method is called automatically by Azure SDK client libraries. You may call this method directly, but you must also handle token caching and token refreshing.
/// </summary>
/// <remarks>
/// Note that credentials requiring user interaction, such as the <see cref="InteractiveBrowserCredential"/>, are not included by default.
/// </remarks>
/// <param name="requestContext">The details of the authentication request.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> controlling the request lifetime.</param>
/// <returns>The first <see cref="AccessToken"/> returned by the specified sources. Any credential which raises a <see cref="CredentialUnavailableException"/> will be skipped.</returns>
public override async ValueTask<AccessToken> GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken = default)
{
return await GetTokenImplAsync(true, requestContext, cancellationToken).ConfigureAwait(false);
}
private async ValueTask<AccessToken> GetTokenImplAsync(bool async, TokenRequestContext requestContext, CancellationToken cancellationToken)
{
using CredentialDiagnosticScope scope = _pipeline.StartGetTokenScopeGroup("DefaultAzureCredential.GetToken", requestContext);
try
{
using var asyncLock = await _credentialLock.GetLockOrValueAsync(async, cancellationToken).ConfigureAwait(false);
AccessToken token;
if (asyncLock.HasValue)
{
token = await GetTokenFromCredentialAsync(asyncLock.Value, requestContext, async, cancellationToken).ConfigureAwait(false);
}
else
{
TokenCredential credential;
(token, credential) = await GetTokenFromSourcesAsync(_sources, requestContext, async, cancellationToken).ConfigureAwait(false);
_sources = default;
asyncLock.SetValue(credential);
AzureIdentityEventSource.Singleton.DefaultAzureCredentialCredentialSelected(credential.GetType().FullName);
}
return scope.Succeeded(token);
}
catch (Exception e)
{
throw scope.FailWrapAndThrow(e);
}
}
private static async ValueTask<AccessToken> GetTokenFromCredentialAsync(TokenCredential credential, TokenRequestContext requestContext, bool async, CancellationToken cancellationToken)
{
try
{
return async
? await credential.GetTokenAsync(requestContext, cancellationToken).ConfigureAwait(false)
: credential.GetToken(requestContext, cancellationToken);
}
catch (Exception e) when (!(e is CredentialUnavailableException))
{
throw new AuthenticationFailedException(UnhandledExceptionMessage, e);
}
}
private static async ValueTask<(AccessToken Token, TokenCredential Credential)> GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, bool async, CancellationToken cancellationToken)
{
List<CredentialUnavailableException> exceptions = new List<CredentialUnavailableException>();
for (var i = 0; i < sources.Length && sources[i] != null; i++)
{
try
{
AccessToken token = async
? await sources[i].GetTokenAsync(requestContext, cancellationToken).ConfigureAwait(false)
: sources[i].GetToken(requestContext, cancellationToken);
return (token, sources[i]);
}
catch (CredentialUnavailableException e)
{
exceptions.Add(e);
}
}
throw CredentialUnavailableException.CreateAggregateException(DefaultExceptionMessage, exceptions);
}
private static TokenCredential[] GetDefaultAzureCredentialChain(DefaultAzureCredentialFactory factory, DefaultAzureCredentialOptions options)
{
if (options is null)
{
return s_defaultCredentialChain;
}
int i = 0;
TokenCredential[] chain = new TokenCredential[8];
if (!options.ExcludeEnvironmentCredential)
{
chain[i++] = factory.CreateEnvironmentCredential();
}
if (!options.ExcludeManagedIdentityCredential)
{
chain[i++] = factory.CreateManagedIdentityCredential(options);
}
if (!options.ExcludeSharedTokenCacheCredential)
{
chain[i++] = factory.CreateSharedTokenCacheCredential(options.SharedTokenCacheTenantId, options.SharedTokenCacheUsername);
}
if (!options.ExcludeVisualStudioCredential)
{
chain[i++] = factory.CreateVisualStudioCredential(options.VisualStudioTenantId);
}
if (!options.ExcludeVisualStudioCodeCredential)
{
chain[i++] = factory.CreateVisualStudioCodeCredential(options.VisualStudioCodeTenantId);
}
if (!options.ExcludeAzureCliCredential)
{
chain[i++] = factory.CreateAzureCliCredential();
}
if (!options.ExcludeAzurePowerShellCredential)
{
chain[i++] = factory.CreateAzurePowerShellCredential();
}
if (!options.ExcludeInteractiveBrowserCredential)
{
chain[i++] = factory.CreateInteractiveBrowserCredential(options.InteractiveBrowserTenantId, options.InteractiveBrowserCredentialClientId);
}
if (i == 0)
{
throw new ArgumentException("At least one credential type must be included in the authentication flow.", nameof(options));
}
return chain;
}
private static DefaultAzureCredentialOptions ValidateAuthorityHostOption(DefaultAzureCredentialOptions options)
{
Validations.ValidateAuthorityHost(options?.AuthorityHost ?? AzureAuthorityHosts.GetDefault());
return options;
}
}
}
| 54.718254 | 290 | 0.676699 | [
"MIT"
] | AikoBB/azure-sdk-for-net | sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredential.cs | 13,789 | C# |
using UnityEngine;
namespace ProceduralToolkit.Examples.Primitives
{
[RequireComponent(typeof(MeshRenderer), typeof(MeshFilter))]
public class Tetrahedron : MonoBehaviour
{
public float radius = 1f;
private void Start()
{
GetComponent<MeshFilter>().mesh = MeshE.Tetrahedron(radius);
}
}
} | 23.4 | 72 | 0.649573 | [
"MIT"
] | Henri-J-Norden/DxR | Assets/External/ProceduralToolkit/Examples/Primitives/Tetrahedron.cs | 353 | C# |
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/calculators/image/opencv_image_encoder_calculator.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Mediapipe {
/// <summary>Holder for reflection information generated from mediapipe/calculators/image/opencv_image_encoder_calculator.proto</summary>
public static partial class OpencvImageEncoderCalculatorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/calculators/image/opencv_image_encoder_calculator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static OpencvImageEncoderCalculatorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CkFtZWRpYXBpcGUvY2FsY3VsYXRvcnMvaW1hZ2Uvb3BlbmN2X2ltYWdlX2Vu",
"Y29kZXJfY2FsY3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGiRtZWRpYXBpcGUv",
"ZnJhbWV3b3JrL2NhbGN1bGF0b3IucHJvdG8ilAEKI09wZW5DdkltYWdlRW5j",
"b2RlckNhbGN1bGF0b3JPcHRpb25zEg8KB3F1YWxpdHkYASABKAUyXAoDZXh0",
"EhwubWVkaWFwaXBlLkNhbGN1bGF0b3JPcHRpb25zGP6wwWwgASgLMi4ubWVk",
"aWFwaXBlLk9wZW5DdkltYWdlRW5jb2RlckNhbGN1bGF0b3JPcHRpb25zIt0B",
"CiNPcGVuQ3ZJbWFnZUVuY29kZXJDYWxjdWxhdG9yUmVzdWx0cxIVCg1lbmNv",
"ZGVkX2ltYWdlGAEgASgMEg4KBmhlaWdodBgCIAEoBRINCgV3aWR0aBgDIAEo",
"BRJNCgpjb2xvcnNwYWNlGAQgASgOMjkubWVkaWFwaXBlLk9wZW5DdkltYWdl",
"RW5jb2RlckNhbGN1bGF0b3JSZXN1bHRzLkNvbG9yU3BhY2UiMQoKQ29sb3JT",
"cGFjZRILCgdVTktOT1dOEAASDQoJR1JBWVNDQUxFEAESBwoDUkdCEAI="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.OpenCvImageEncoderCalculatorOptions), global::Mediapipe.OpenCvImageEncoderCalculatorOptions.Parser, new[]{ "Quality" }, null, null, new pb::Extension[] { global::Mediapipe.OpenCvImageEncoderCalculatorOptions.Extensions.Ext }, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.OpenCvImageEncoderCalculatorResults), global::Mediapipe.OpenCvImageEncoderCalculatorResults.Parser, new[]{ "EncodedImage", "Height", "Width", "Colorspace" }, null, new[]{ typeof(global::Mediapipe.OpenCvImageEncoderCalculatorResults.Types.ColorSpace) }, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class OpenCvImageEncoderCalculatorOptions : pb::IMessage<OpenCvImageEncoderCalculatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<OpenCvImageEncoderCalculatorOptions> _parser = new pb::MessageParser<OpenCvImageEncoderCalculatorOptions>(() => new OpenCvImageEncoderCalculatorOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<OpenCvImageEncoderCalculatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.OpencvImageEncoderCalculatorReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OpenCvImageEncoderCalculatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OpenCvImageEncoderCalculatorOptions(OpenCvImageEncoderCalculatorOptions other) : this() {
_hasBits0 = other._hasBits0;
quality_ = other.quality_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OpenCvImageEncoderCalculatorOptions Clone() {
return new OpenCvImageEncoderCalculatorOptions(this);
}
/// <summary>Field number for the "quality" field.</summary>
public const int QualityFieldNumber = 1;
private readonly static int QualityDefaultValue = 0;
private int quality_;
/// <summary>
/// Quality of the encoding. An integer between (0, 100].
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Quality {
get { if ((_hasBits0 & 1) != 0) { return quality_; } else { return QualityDefaultValue; } }
set {
_hasBits0 |= 1;
quality_ = value;
}
}
/// <summary>Gets whether the "quality" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasQuality {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "quality" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearQuality() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as OpenCvImageEncoderCalculatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OpenCvImageEncoderCalculatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Quality != other.Quality) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasQuality) hash ^= Quality.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasQuality) {
output.WriteRawTag(8);
output.WriteInt32(Quality);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasQuality) {
output.WriteRawTag(8);
output.WriteInt32(Quality);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasQuality) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Quality);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(OpenCvImageEncoderCalculatorOptions other) {
if (other == null) {
return;
}
if (other.HasQuality) {
Quality = other.Quality;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Quality = input.ReadInt32();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Quality = input.ReadInt32();
break;
}
}
}
}
#endif
#region Extensions
/// <summary>Container for extensions for other messages declared in the OpenCvImageEncoderCalculatorOptions message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Extensions {
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.OpenCvImageEncoderCalculatorOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.OpenCvImageEncoderCalculatorOptions>(227563646, pb::FieldCodec.ForMessage(1820509170, global::Mediapipe.OpenCvImageEncoderCalculatorOptions.Parser));
}
#endregion
}
/// <summary>
/// TODO: Consider renaming it to EncodedImage.
/// </summary>
public sealed partial class OpenCvImageEncoderCalculatorResults : pb::IMessage<OpenCvImageEncoderCalculatorResults>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<OpenCvImageEncoderCalculatorResults> _parser = new pb::MessageParser<OpenCvImageEncoderCalculatorResults>(() => new OpenCvImageEncoderCalculatorResults());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<OpenCvImageEncoderCalculatorResults> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.OpencvImageEncoderCalculatorReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OpenCvImageEncoderCalculatorResults() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OpenCvImageEncoderCalculatorResults(OpenCvImageEncoderCalculatorResults other) : this() {
_hasBits0 = other._hasBits0;
encodedImage_ = other.encodedImage_;
height_ = other.height_;
width_ = other.width_;
colorspace_ = other.colorspace_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OpenCvImageEncoderCalculatorResults Clone() {
return new OpenCvImageEncoderCalculatorResults(this);
}
/// <summary>Field number for the "encoded_image" field.</summary>
public const int EncodedImageFieldNumber = 1;
private readonly static pb::ByteString EncodedImageDefaultValue = pb::ByteString.Empty;
private pb::ByteString encodedImage_;
/// <summary>
/// Pixel data encoded as JPEG.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pb::ByteString EncodedImage {
get { return encodedImage_ ?? EncodedImageDefaultValue; }
set {
encodedImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "encoded_image" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasEncodedImage {
get { return encodedImage_ != null; }
}
/// <summary>Clears the value of the "encoded_image" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearEncodedImage() {
encodedImage_ = null;
}
/// <summary>Field number for the "height" field.</summary>
public const int HeightFieldNumber = 2;
private readonly static int HeightDefaultValue = 0;
private int height_;
/// <summary>
/// Height of the image data under #1 once decoded.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Height {
get { if ((_hasBits0 & 1) != 0) { return height_; } else { return HeightDefaultValue; } }
set {
_hasBits0 |= 1;
height_ = value;
}
}
/// <summary>Gets whether the "height" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasHeight {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "height" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearHeight() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "width" field.</summary>
public const int WidthFieldNumber = 3;
private readonly static int WidthDefaultValue = 0;
private int width_;
/// <summary>
/// Width of the image data under #1 once decoded.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Width {
get { if ((_hasBits0 & 2) != 0) { return width_; } else { return WidthDefaultValue; } }
set {
_hasBits0 |= 2;
width_ = value;
}
}
/// <summary>Gets whether the "width" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasWidth {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "width" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearWidth() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "colorspace" field.</summary>
public const int ColorspaceFieldNumber = 4;
private readonly static global::Mediapipe.OpenCvImageEncoderCalculatorResults.Types.ColorSpace ColorspaceDefaultValue = global::Mediapipe.OpenCvImageEncoderCalculatorResults.Types.ColorSpace.Unknown;
private global::Mediapipe.OpenCvImageEncoderCalculatorResults.Types.ColorSpace colorspace_;
/// <summary>
/// Color space used.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.OpenCvImageEncoderCalculatorResults.Types.ColorSpace Colorspace {
get { if ((_hasBits0 & 4) != 0) { return colorspace_; } else { return ColorspaceDefaultValue; } }
set {
_hasBits0 |= 4;
colorspace_ = value;
}
}
/// <summary>Gets whether the "colorspace" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasColorspace {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "colorspace" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearColorspace() {
_hasBits0 &= ~4;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as OpenCvImageEncoderCalculatorResults);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OpenCvImageEncoderCalculatorResults other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (EncodedImage != other.EncodedImage) return false;
if (Height != other.Height) return false;
if (Width != other.Width) return false;
if (Colorspace != other.Colorspace) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasEncodedImage) hash ^= EncodedImage.GetHashCode();
if (HasHeight) hash ^= Height.GetHashCode();
if (HasWidth) hash ^= Width.GetHashCode();
if (HasColorspace) hash ^= Colorspace.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasEncodedImage) {
output.WriteRawTag(10);
output.WriteBytes(EncodedImage);
}
if (HasHeight) {
output.WriteRawTag(16);
output.WriteInt32(Height);
}
if (HasWidth) {
output.WriteRawTag(24);
output.WriteInt32(Width);
}
if (HasColorspace) {
output.WriteRawTag(32);
output.WriteEnum((int) Colorspace);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasEncodedImage) {
output.WriteRawTag(10);
output.WriteBytes(EncodedImage);
}
if (HasHeight) {
output.WriteRawTag(16);
output.WriteInt32(Height);
}
if (HasWidth) {
output.WriteRawTag(24);
output.WriteInt32(Width);
}
if (HasColorspace) {
output.WriteRawTag(32);
output.WriteEnum((int) Colorspace);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasEncodedImage) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(EncodedImage);
}
if (HasHeight) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Height);
}
if (HasWidth) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Width);
}
if (HasColorspace) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Colorspace);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(OpenCvImageEncoderCalculatorResults other) {
if (other == null) {
return;
}
if (other.HasEncodedImage) {
EncodedImage = other.EncodedImage;
}
if (other.HasHeight) {
Height = other.Height;
}
if (other.HasWidth) {
Width = other.Width;
}
if (other.HasColorspace) {
Colorspace = other.Colorspace;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
EncodedImage = input.ReadBytes();
break;
}
case 16: {
Height = input.ReadInt32();
break;
}
case 24: {
Width = input.ReadInt32();
break;
}
case 32: {
Colorspace = (global::Mediapipe.OpenCvImageEncoderCalculatorResults.Types.ColorSpace) input.ReadEnum();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
EncodedImage = input.ReadBytes();
break;
}
case 16: {
Height = input.ReadInt32();
break;
}
case 24: {
Width = input.ReadInt32();
break;
}
case 32: {
Colorspace = (global::Mediapipe.OpenCvImageEncoderCalculatorResults.Types.ColorSpace) input.ReadEnum();
break;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the OpenCvImageEncoderCalculatorResults message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
public enum ColorSpace {
[pbr::OriginalName("UNKNOWN")] Unknown = 0,
[pbr::OriginalName("GRAYSCALE")] Grayscale = 1,
[pbr::OriginalName("RGB")] Rgb = 2,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code
| 38.538462 | 331 | 0.684631 | [
"Apache-2.0"
] | SeedV/SeedAvatarStudio | Packages/com.github.homuler.mediapipe/Runtime/Scripts/Protobuf/Calculators/Image/OpencvImageEncoderCalculator.cs | 25,551 | C# |
using BookStore.Common.Models;
namespace BookStore.Repository.Interfaces
{
public interface IBookRepository
{
Task CreateBook(Book book);
Task DeleteBook(string bookId);
Task<List<Book>> GetAllBooks();
Task<Book> GetBook(string bookId);
Task UpdateBook(string bookId, Book book);
}
}
| 24.142857 | 50 | 0.668639 | [
"MIT"
] | willvelida/bookstore-containerapps | src/BookStore/BookStore.Repository/Interfaces/IBookRepository.cs | 340 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using Ketchup.Profession.ORM.EntityFramworkCore.Repository;
namespace Ketchup.Zero.Application.Domain.Repos
{
public interface IRoleMenuRepos : IEfCoreRepository<SysRoleMenu, int>
{
/// <summary>
/// 批量添加
/// </summary>
/// <param name="entities"></param>
/// <returns></returns>
bool BatchInsert(List<SysRoleMenu> entities);
}
}
| 25.5 | 73 | 0.657952 | [
"MIT"
] | DotNetExample/ketchup.zero | src/Ketchup.Zero.Application/Domain/Repos/IRoleMenuRepos.cs | 469 | C# |
using Microsoft.AspNetCore.Mvc;
using System.Buffers;
using WebApp.Models;
namespace WebApp.Controllers;
[Produces("application/json")]
[ApiController]
[Route("api/[controller]")]
public class UploadController : ControllerBase
{
private readonly ILogger<UploadController> _logger;
public UploadController(ILogger<UploadController> logger)
{
_logger = logger;
}
/// <summary>
/// Upload file.
/// </summary>
/// <returns>Number of bytes uploaded</returns>
/// <response code="200">Returns number of bytes uploaded</response>
[HttpPost]
[RequestSizeLimit(int.MaxValue)]
[ProducesResponseType(typeof(UploadResponse), StatusCodes.Status200OK)]
public async Task<ActionResult> Post()
{
if (!Request.ContentLength.HasValue)
{
return new BadRequestObjectResult("Content-Length is required header.");
}
var readBytes = 0;
var buffer = ArrayPool<byte>.Shared.Rent(4096);
while (true)
{
var read = await Request.Body.ReadAsync(buffer, 0, buffer.Length);
if (read == 0)
{
break;
}
readBytes += read;
}
ArrayPool<byte>.Shared.Return(buffer);
return new OkObjectResult(new UploadResponse()
{
Size = readBytes
});
}
}
| 26.09434 | 84 | 0.605929 | [
"MIT"
] | JanneMattila/326-webapp-and-folders | src/WebApp/Controllers/UploadController.cs | 1,385 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using Csla.Core;
using Csla.Rules;
using Microsoft.AspNetCore.Components.Forms;
namespace Csla.Blazor
{
/// <summary>
/// Implements extension methods for edit context.
/// </summary>
public static class EditContextCslaExtensions
{
/// <summary>
/// Adds validation support to the <see cref="EditContext"/> for objects implementing ICheckRules.
/// </summary>
/// <param name="editContext">The <see cref="EditContext"/>.</param>
public static EditContext AddCslaValidation(this EditContext editContext)
{
if (editContext == null)
{
throw new ArgumentNullException(nameof(editContext));
}
var messages = new ValidationMessageStore(editContext);
// Perform object-level validation on request
editContext.OnValidationRequested +=
(sender, eventArgs) => ValidateModel((EditContext)sender, messages);
// Perform per-field validation on each field edit
editContext.OnFieldChanged +=
(sender, eventArgs) => ValidateField(editContext, messages, eventArgs.FieldIdentifier);
return editContext;
}
/// <summary>
/// Method to perform validation on the model as a whole
/// Applies changes to the validation store provided as a parameter
/// </summary>
/// <param name="editContext">The EditContext provided by the form doing the editing</param>
/// <param name="messages">The validation message store to be updated during validation</param>
private static void ValidateModel(EditContext editContext, ValidationMessageStore messages)
{
ICheckRules model;
// Get access to the model via the required interface
model = editContext.Model as ICheckRules;
// Check if the model was provided, and correctly cast
if (editContext.Model == null)
{
throw new ArgumentNullException(nameof(editContext.Model));
}
if (model == null)
{
throw new ArgumentException(
string.Format(Csla.Properties.Resources.InterfaceNotImplementedException,
nameof(editContext.Model), nameof(ICheckRules)));
}
// Transfer broken rules of severity Error to the ValidationMessageStore
messages.Clear();
foreach (var brokenRule in model.GetBrokenRules())
{
if (brokenRule.Severity == RuleSeverity.Error)
{
// Add a new message for each broken rule
messages.Add(new FieldIdentifier(model, brokenRule.Property), brokenRule.Description);
}
}
// Inform consumers that the state may have changed
editContext.NotifyValidationStateChanged();
}
/// <summary>
/// Method to perform validation on a single property of the model being edit
/// Applies changes to the validation store provided as a parameter
/// </summary>
/// <param name="editContext">The EditContext provided by the form doing the editing</param>
/// <param name="messages">The validation message store to be updated during validation</param>
/// <param name="fieldIdentifier">Identifier that indicates the field being validated</param>
private static void ValidateField(EditContext editContext, ValidationMessageStore messages, in FieldIdentifier fieldIdentifier)
{
ICheckRules model;
// Get access to the model via the required interface
model = editContext.Model as ICheckRules;
// Check if the model was provided, and correctly cast
if (model == null)
{
throw new ArgumentException(
string.Format(Csla.Properties.Resources.InterfaceNotImplementedException,
nameof(editContext.Model), nameof(ICheckRules)));
}
// Transfer any broken rules of severity Error for the required property to the store
messages.Clear(fieldIdentifier);
foreach (BrokenRule brokenRule in model.GetBrokenRules())
{
if (brokenRule.Severity == RuleSeverity.Error)
{
if (fieldIdentifier.FieldName.Equals(brokenRule.Property))
{
// Add a message for each broken rule on the property under validation
messages.Add(fieldIdentifier, brokenRule.Description);
}
}
}
// We have to notify even if there were no messages before and are still no messages now,
// because the "state" that changed might be the completion of some async validation task
editContext.NotifyValidationStateChanged();
}
}
}
| 37.471074 | 131 | 0.683502 | [
"MIT"
] | Alstig/csla | Source/Csla.Blazor/EditContextCslaExtensions.cs | 4,536 | C# |
namespace Gu.TwinCat.Tests
{
using System;
using NUnit.Framework;
using TwinCAT.Ads;
public static class AdsClientTests
{
[Test]
public static void ReadInActiveThrows()
{
using var client = new AdsClient(
new AutoReconnectSettings(
address: new AmsAddress("1.2.3.4.5.6", 851),
reconnectInterval: AdsTimeSpan.FromSeconds(1),
inactiveSymbolHandling: InactiveSymbolHandling.Throw));
var exception = Assert.Throws<InvalidOperationException>(() => client.Read(SymbolFactory.ReadInt32("Plc.ReadOnly", isActive: false)));
Assert.AreEqual("Reading inactive symbol is not allowed.", exception!.Message);
}
[Test]
public static void ReadInActiveReturnsDefault()
{
using var client = new AdsClient(
new AutoReconnectSettings(
address: new AmsAddress("1.2.3.4.5.6", 851),
reconnectInterval: AdsTimeSpan.FromSeconds(1),
inactiveSymbolHandling: InactiveSymbolHandling.UseDefault));
Assert.AreEqual(0, client.Read(SymbolFactory.ReadInt32("Plc.ReadOnly", isActive: false)));
}
[Test]
public static void WriteInActiveThrows()
{
using var client = new AdsClient(
new AutoReconnectSettings(
address: new AmsAddress("1.2.3.4.5.6", 851),
reconnectInterval: AdsTimeSpan.FromSeconds(1),
inactiveSymbolHandling: InactiveSymbolHandling.Throw));
var exception = Assert.Throws<InvalidOperationException>(() => client.Write(SymbolFactory.WriteInt32("Plc.ReadOnly", isActive: false), 1));
Assert.AreEqual("Writing inactive symbol is not allowed.", exception!.Message);
}
[Test]
public static void WriteInActiveReturnsDefault()
{
using var client = new AdsClient(
new AutoReconnectSettings(
address: new AmsAddress("1.2.3.4.5.6", 851),
reconnectInterval: AdsTimeSpan.FromSeconds(1),
inactiveSymbolHandling: InactiveSymbolHandling.UseDefault));
client.Write(SymbolFactory.WriteInt32("Plc.ReadOnly", isActive: false), 2);
}
[Test]
public static void SubscribeInActiveThrows()
{
using var client = new AdsClient(
new AutoReconnectSettings(
address: new AmsAddress("1.2.3.4.5.6", 851),
reconnectInterval: AdsTimeSpan.FromSeconds(1),
inactiveSymbolHandling: InactiveSymbolHandling.Throw));
var exception = Assert.Throws<InvalidOperationException>(() => client.Subscribe(SymbolFactory.ReadInt32("Plc.ReadOnly", isActive: false), AdsTransMode.OnChange, AdsTimeSpan.FromMilliseconds(100)));
Assert.AreEqual("Subscribing to inactive symbol is not allowed.", exception!.Message);
}
[Test]
public static void SubscribeInActiveReturnsDefault()
{
using var client = new AdsClient(
new AutoReconnectSettings(
address: new AmsAddress("1.2.3.4.5.6", 851),
reconnectInterval: AdsTimeSpan.FromSeconds(1),
inactiveSymbolHandling: InactiveSymbolHandling.UseDefault));
using var subscription = client.Subscribe(SymbolFactory.ReadInt32("Plc.ReadOnly", isActive: false), AdsTransMode.OnChange, AdsTimeSpan.FromMilliseconds(100));
Assert.AreEqual(true, subscription.Value.HasValue);
Assert.AreEqual(0, subscription.Value.Value);
}
}
}
| 43.333333 | 209 | 0.608753 | [
"MIT"
] | GuOrg/Gu.TwinCat | Gu.TwinCat.Tests/AdsClientTests.cs | 3,772 | C# |
using NUnit.Framework;
using SouthernBug.App.Model;
namespace SB_Test_Cli.Tests
{
[TestFixture]
public class DateAverageTest
{
[SetUp]
public void SetUp()
{
dateAverage = new DateAverage(new DateParser(2010));
}
private DateAverage dateAverage;
[Test]
public void Main()
{
Assert.AreEqual("", dateAverage.CalcFor());
Assert.AreEqual("11.05", dateAverage.CalcFor("11.05"));
Assert.AreEqual("11.05", dateAverage.CalcFor("10.05", "12.05"));
Assert.AreEqual("13.05", dateAverage.CalcFor("10.05", "16.05"));
Assert.AreEqual("10.05", dateAverage.CalcFor("09.05", "10.05", "11.05"));
Assert.AreEqual("31.01", dateAverage.CalcFor("01.01", "01.02", "01.03"));
Assert.AreEqual("15.01", dateAverage.CalcFor("10.01", "", "20.01"));
}
}
} | 27.787879 | 85 | 0.560523 | [
"MIT"
] | vsh-odeku/southern-bug-app | SB_Test_Cli/Tests/DateAverageTest.cs | 919 | C# |
namespace AutoMapper
{
using System;
using System.Collections;
using System.Collections.Generic;
public class ReflectionUtils
{
private static readonly HashSet<string> types = new HashSet<string> { "System.String", "System.Int32", "System.Decimal",
"System.Double", "System.Guid", "System.Single", "System.Int64", "System.UInt64",
"System.Int16", "System.DateTime", "System.String[]", "System.Int32[]", "System.Decimal[]", "System.Double[]", "System.Guid[]", "System.Single[]", "System.DateTime[]"
};
public static bool IsPrimitive(Type type)
{
return types.Contains(type.FullName)
|| type.IsPrimitive
|| ReflectionUtils.IsNullable(type) && IsPrimitive(Nullable.GetUnderlyingType(type))
|| type.IsEnum;
}
public static bool IsGenericCollection(Type type)
{
return
(type.IsGenericType && (
type.GetGenericTypeDefinition() == typeof(List<>) ||
type.GetGenericTypeDefinition() == typeof(ICollection<>) ||
type.GetGenericTypeDefinition() == typeof(IEnumerable<>) ||
type.GetGenericTypeDefinition() == typeof(IList<>))) ||
typeof(IList<>).IsAssignableFrom(type) ||
typeof(HashSet<>).IsAssignableFrom(type);
}
public static bool IsNonGenericCollection(Type type)
{
return
type.IsArray || type == typeof(ArrayList) ||
typeof(IList).IsAssignableFrom(type);
}
public static bool IsNullable(Type type)
{
return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
}
}
}
| 39.043478 | 182 | 0.575167 | [
"MIT"
] | zrusev/SoftUni_2016 | 16. Databases Advanced - Entity Framework - Feb 2019/08. Automapper Implementation/Automapper/Automapper/ReflectionUtils.cs | 1,798 | C# |
using UnityEngine;
using UnityEngine.Assertions;
using System;
using System.Linq;
using System.Collections.Generic;
namespace WishfulDroplet {
/// <summary>
/// A Singleton manager.
/// </summary>
public static class Singleton {
private static Dictionary<Type, object> _singletons = new Dictionary<Type, object>();
public static T Get<T>() where T : class {
Type type = typeof(T);
object value = null;
if(!_singletons.TryGetValue(type, out value)) {
// If we don't find any singleton of that type then
// we try to iterate the values if there are singletons
// which are assignable to our type
foreach(var singleton in _singletons) {
if(type.IsAssignableFrom(singleton.Value.GetType())) {
value = singleton.Value;
Add(type, value);
break;
}
}
}
return (T)value;
}
public static void Add<T>(T singleton) where T : class {
Add(typeof(T), singleton);
}
public static void Add(Type type, object singleton) {
Assert.IsTrue(type.IsAssignableFrom(singleton.GetType()));
_singletons[type] = singleton;
}
public static void Remove<T>() where T : class {
Remove(typeof(T));
}
public static void Remove(Type type) {
_singletons.Remove(type);
}
}
} | 24.09434 | 93 | 0.658575 | [
"MIT"
] | admoraguilar/supermariobros-unity | Assets/_Project/_Common/Scripts/WishfulDroplet/Singleton.cs | 1,279 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
public class BGI_DEF
{
public BGI_DEF()
{
this.name = String.Empty;
this.orgPos = new BGI_VEC_DEF();
this.curPos = new BGI_VEC_DEF();
this.minPos = new BGI_VEC_DEF();
this.maxPos = new BGI_VEC_DEF();
this.charPos = new BGI_VEC_DEF();
this.triList = new List<BGI_TRI_DEF>();
this.edgeList = new List<BGI_EDGE_DEF>();
this.anmList = new List<BGI_ANM_DEF>();
this.floorList = new List<BGI_FLOOR_DEF>();
this.normalList = new List<BGI_FVEC_DEF>();
this.vertexList = new List<BGI_VEC_DEF>();
}
public void ReadData(BinaryReader reader)
{
reader.BaseStream.Seek(4L, SeekOrigin.Begin);
this.dataSize = reader.ReadUInt16();
this.orgPos.ReadData(reader);
this.curPos.ReadData(reader);
this.minPos.ReadData(reader);
this.maxPos.ReadData(reader);
this.charPos.ReadData(reader);
this.activeFloor = reader.ReadInt16();
this.activeTri = reader.ReadInt16();
this.triCount = reader.ReadUInt16();
this.triOffset = reader.ReadUInt16();
this.edgeCount = reader.ReadUInt16();
this.edgeOffset = reader.ReadUInt16();
this.anmCount = reader.ReadUInt16();
this.anmOffset = reader.ReadUInt16();
this.floorCount = reader.ReadUInt16();
this.floorOffset = reader.ReadUInt16();
this.normalCount = reader.ReadUInt16();
this.normalOffset = reader.ReadUInt16();
this.vertexCount = reader.ReadUInt16();
this.vertexOffset = reader.ReadUInt16();
reader.BaseStream.Seek((Int64)(4 + this.triOffset), SeekOrigin.Begin);
for (UInt16 num = 0; num < this.triCount; num = (UInt16)(num + 1))
{
BGI_TRI_DEF bgi_TRI_DEF = new BGI_TRI_DEF();
bgi_TRI_DEF.ReadData(reader);
bgi_TRI_DEF.triIdx = (Int32)num;
this.triList.Add(bgi_TRI_DEF);
}
reader.BaseStream.Seek((Int64)(4 + this.edgeOffset), SeekOrigin.Begin);
for (UInt16 num2 = 0; num2 < this.edgeCount; num2 = (UInt16)(num2 + 1))
{
BGI_EDGE_DEF bgi_EDGE_DEF = new BGI_EDGE_DEF();
bgi_EDGE_DEF.ReadData(reader);
this.edgeList.Add(bgi_EDGE_DEF);
}
reader.BaseStream.Seek((Int64)(4 + this.anmOffset), SeekOrigin.Begin);
for (UInt16 num3 = 0; num3 < this.anmCount; num3 = (UInt16)(num3 + 1))
{
BGI_ANM_DEF bgi_ANM_DEF = new BGI_ANM_DEF();
bgi_ANM_DEF.ReadData(reader);
this.anmList.Add(bgi_ANM_DEF);
}
for (Int32 i = 0; i < (Int32)this.anmCount; i++)
{
BGI_ANM_DEF bgi_ANM_DEF2 = this.anmList[i];
bgi_ANM_DEF2.frameList = new List<BGI_FRAME_DEF>();
reader.BaseStream.Seek((Int64)((UInt64)(4u + bgi_ANM_DEF2.frameOffset)), SeekOrigin.Begin);
for (Int32 j = 0; j < (Int32)bgi_ANM_DEF2.frameCount; j++)
{
BGI_FRAME_DEF bgi_FRAME_DEF = new BGI_FRAME_DEF();
bgi_FRAME_DEF.ReadData(reader);
bgi_ANM_DEF2.frameList.Add(bgi_FRAME_DEF);
}
}
for (Int32 k = 0; k < (Int32)this.anmCount; k++)
{
BGI_ANM_DEF bgi_ANM_DEF3 = this.anmList[k];
for (Int32 l = 0; l < (Int32)bgi_ANM_DEF3.frameCount; l++)
{
BGI_FRAME_DEF bgi_FRAME_DEF2 = bgi_ANM_DEF3.frameList[l];
reader.BaseStream.Seek((Int64)(4 + bgi_FRAME_DEF2.triNdxOffset), SeekOrigin.Begin);
bgi_FRAME_DEF2.triIdxList = new List<Int32>();
for (Int32 m = 0; m < (Int32)bgi_FRAME_DEF2.triCount; m++)
{
Int32 item = reader.ReadInt32();
bgi_FRAME_DEF2.triIdxList.Add(item);
}
}
}
reader.BaseStream.Seek((Int64)(4 + this.floorOffset), SeekOrigin.Begin);
for (UInt16 num4 = 0; num4 < this.floorCount; num4 = (UInt16)(num4 + 1))
{
BGI_FLOOR_DEF bgi_FLOOR_DEF = new BGI_FLOOR_DEF();
bgi_FLOOR_DEF.ReadData(reader);
this.floorList.Add(bgi_FLOOR_DEF);
}
reader.BaseStream.Seek((Int64)(4 + this.normalOffset), SeekOrigin.Begin);
for (UInt16 num5 = 0; num5 < this.normalCount; num5 = (UInt16)(num5 + 1))
{
BGI_FVEC_DEF bgi_FVEC_DEF = new BGI_FVEC_DEF();
bgi_FVEC_DEF.ReadData(reader);
this.normalList.Add(bgi_FVEC_DEF);
}
reader.BaseStream.Seek((Int64)(4 + this.vertexOffset), SeekOrigin.Begin);
for (UInt16 num6 = 0; num6 < this.vertexCount; num6 = (UInt16)(num6 + 1))
{
BGI_VEC_DEF bgi_VEC_DEF = new BGI_VEC_DEF();
bgi_VEC_DEF.ReadData(reader);
this.vertexList.Add(bgi_VEC_DEF);
}
}
public void LoadBGI(FieldMap fieldMap, String path, String name)
{
this.name = name;
String[] bgiInfo;
Byte[] binAsset = AssetManager.LoadBytes(path + name + ".bgi", out bgiInfo, false);
if (FF9StateSystem.Common.FF9.fldMapNo == 70)
{
return;
}
using (BinaryReader binaryReader = new BinaryReader(new MemoryStream(binAsset)))
{
this.ReadData(binaryReader);
}
}
public const Int32 MAGIC_SIZE = 4;
public UInt16 dataSize;
public BGI_VEC_DEF orgPos;
public BGI_VEC_DEF curPos;
public BGI_VEC_DEF minPos;
public BGI_VEC_DEF maxPos;
public BGI_VEC_DEF charPos;
public Int16 activeFloor;
public Int16 activeTri;
public UInt16 triCount;
public UInt16 triOffset;
public UInt16 edgeCount;
public UInt16 edgeOffset;
public UInt16 anmCount;
public UInt16 anmOffset;
public UInt16 floorCount;
public UInt16 floorOffset;
public UInt16 normalCount;
public UInt16 normalOffset;
public UInt16 vertexCount;
public UInt16 vertexOffset;
public String name;
public Byte attributeMask;
public List<BGI_TRI_DEF> triList;
public List<BGI_EDGE_DEF> edgeList;
public List<BGI_ANM_DEF> anmList;
public List<BGI_FLOOR_DEF> floorList;
public List<BGI_FVEC_DEF> normalList;
public List<BGI_VEC_DEF> vertexList;
}
| 28.302083 | 94 | 0.712735 | [
"MIT"
] | Iamgoofball/Memoria | Assembly-CSharp/Global/BGI_DEF.cs | 5,434 | C# |
namespace WPF.Update.Squirrel.Core
{
public struct CheckForUpdateResult
{
public string CurrentVersion { get; set; }
public string FutureVersion { get; set; }
public ReleaseToApply[] ReleasesToApply { get; set; }
}
}
| 25.4 | 61 | 0.653543 | [
"MIT"
] | Liklainy/WPF.Update | Squirrel/Core/CheckForUpdateResult.cs | 256 | C# |
using ITGlobal.MarkDocs.Extensions;
using ITGlobal.MarkDocs.Tools.Serve.Controllers;
namespace ITGlobal.MarkDocs.Tools.Serve.Extensions
{
public sealed class CompilationReportExtensionFactory : IExtensionFactory
{
private readonly DevConnectionManager _manager;
private readonly bool _quiet;
public CompilationReportExtensionFactory(DevConnectionManager manager, bool quiet)
{
_manager = manager;
_quiet = quiet;
}
public IExtension Create(IMarkDocService service)
{
return new CompilationReportExtension(_manager, _quiet);
}
}
} | 29.272727 | 90 | 0.694099 | [
"MIT"
] | ITGlobal/MarkDocs | src/markdocs/Serve/Extensions/CompilationReportExtensionFactory.cs | 644 | C# |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop.DirectX;
/// <include file='D3D12_INDEX_BUFFER_VIEW.xml' path='doc/member[@name="D3D12_INDEX_BUFFER_VIEW"]/*' />
public partial struct D3D12_INDEX_BUFFER_VIEW
{
/// <include file='D3D12_INDEX_BUFFER_VIEW.xml' path='doc/member[@name="D3D12_INDEX_BUFFER_VIEW.BufferLocation"]/*' />
[NativeTypeName("D3D12_GPU_VIRTUAL_ADDRESS")]
public ulong BufferLocation;
/// <include file='D3D12_INDEX_BUFFER_VIEW.xml' path='doc/member[@name="D3D12_INDEX_BUFFER_VIEW.SizeInBytes"]/*' />
public uint SizeInBytes;
/// <include file='D3D12_INDEX_BUFFER_VIEW.xml' path='doc/member[@name="D3D12_INDEX_BUFFER_VIEW.Format"]/*' />
public DXGI_FORMAT Format;
}
| 46.52381 | 145 | 0.75435 | [
"MIT"
] | IngmarBitter/terrafx.interop.windows | sources/Interop/Windows/DirectX/um/d3d12/D3D12_INDEX_BUFFER_VIEW.cs | 979 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Xml;
using System.Text.RegularExpressions;
using Wonton.Common;
using Wonton.CrossUI.Web.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Wonton.CrossUI.Web.Services;
namespace Wonton.CrossUI.Web.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class FPGAController : ControllerBase
{
private readonly ILogger<FPGAController> _logger;
private readonly FPGAManager _manager;
private Dictionary<string, int> inputDict;
private Dictionary<string, int> outputDict;
public FPGAController(ILogger<FPGAController> logger, FPGAManager manager)
{
_logger = logger;
_manager = manager;
inputDict = new Dictionary<string, int>()
{
{"P151", 0},
{"P148", 1},
{"P150", 2},
{"P152", 3},
{"P160", 4},
{"P161", 5},
{"P162", 6},
{"P163", 7},
{"P164", 8},
{"P165", 9},
{"P166", 10},
{"P169", 11},
{"P173", 12},
{"P174", 13},
{"P175", 14},
{"P191", 15},
{"P120", 16},
{"P116", 17},
{"P115", 18},
{"P114", 19},
{"P113", 20},
{"P112", 21},
{"P111", 22},
{"P108", 23},
{"P102", 24},
{"P101", 25},
{"P100", 26},
{"P97", 27},
{"P96", 28},
{"P95", 29},
{"P89", 30},
{"P88", 31},
{"P87", 32},
{"P86", 33},
{"P81", 34},
{"P75", 35},
{"P74", 36},
{"P70", 37},
{"P69", 38},
{"P68", 39},
{"P64", 40},
{"P62", 41},
{"P61", 42},
{"P58", 43},
{"P57", 44},
{"P49", 45},
{"P47", 46},
{"P48", 47},
{"P192", 48},
{"P193", 49},
{"P199", 50},
{"P200", 51},
{"P201", 52},
{"P202", 53}
};
outputDict = new Dictionary<string, int>()
{
{"P7", 0},
{"P6", 1},
{"P5", 2},
{"P4", 3},
{"P9", 4},
{"P8", 5},
{"P16", 6},
{"P15", 7},
{"P11", 8},
{"P10", 9},
{"P20", 10},
{"P18", 11},
{"P17", 12},
{"P22", 13},
{"P21", 14},
{"P23", 15},
{"P44", 16},
{"P45", 17},
{"P46", 18},
{"P43", 19},
{"P40", 20},
{"P41", 21},
{"P42", 22},
{"P33", 23},
{"P34", 24},
{"P35", 25},
{"P36", 26},
{"P30", 27},
{"P31", 28},
{"P24", 29},
{"P27", 30},
{"P29", 31},
{"P110", 32},
{"P109", 33},
{"P99", 34},
{"P98", 35},
{"P94", 36},
{"P93", 37},
{"P84", 38},
{"P83", 39},
{"P82", 40},
{"P73", 41},
{"P71", 42},
{"P63", 43},
{"P60", 44},
{"P59", 45},
{"P56", 46},
{"P55", 47},
{"P167", 48},
{"P168", 49},
{"P176", 50},
{"P187", 51},
{"P189", 52},
{"P194", 53}
};
}
[HttpGet("initio")]
public FPGAResponse InitIO(int writeCount, int readCount)
{
var b = _manager.Board;
b.InitIO(writeCount, readCount);
_logger.LogInformation("initio成功");
return new FPGAResponse()
{
Message = "成功",
Status = true
};
}
[HttpGet("program")]
public FPGAResponse Program(string bitfile)
{
var b = _manager.Board;
try
{
var r = b.Program(bitfile);
}
catch (Exception e)
{
_logger.LogError(e, "Program失败");
//Electron.Notification.Show(new NotificationOptions("馄饨FPGA", "Program失败"));
return new FPGAResponse()
{
Message = e.Message,
Status = false
};
}
_logger.LogInformation("Program成功");
string logpath = Path.Combine(FPGAManager.GetConfigDir(), "WriteReadLog.txt");
if (System.IO.File.Exists(logpath))
{
System.IO.File.Delete(logpath);
}
//Electron.Notification.Show(new NotificationOptions("馄饨FPGA", "Program成功"));
return new FPGAResponse()
{
Message = "成功",
Status = true
};
}
[HttpGet("ioopen")]
public FPGAResponse IoOpen()
{
var b = _manager.Board;
try
{
var r = b.IoOpen();
}
catch (Exception e)
{
_logger.LogError(e, "ioopen失败");
//Electron.Notification.Show(new NotificationOptions("馄饨FPGA", "FPGA未连接"));
return new FPGAResponse()
{
Message = e.Message,
Status = false
};
}
_logger.LogInformation("ioopen成功");
return new FPGAResponse()
{
Message = "成功",
Status = true
};
}
[HttpGet("ioclose")]
public FPGAResponse IoClose()
{
var b = _manager.Board;
try
{
var r = b.IoClose();
}
catch (Exception e)
{
_logger.LogError(e, "ioclose失败");
return new FPGAResponse()
{
Message = e.Message,
Status = false
};
}
_logger.LogInformation("ioclose成功");
return new FPGAResponse()
{
Message = "成功",
Status = true
};
}
[HttpPost("writereadfpga")]
public async Task<FPGAResponse> WriteReadFPGA([FromBody] ushort[] write)
{
var b = _manager.Board;
b.WriteBuffer.Span.Clear();
write.CopyTo(b.WriteBuffer.Span);
try
{
b.WriteReadData();
}
catch (Exception e)
{
_logger.LogError(e, "writereadfpga失败");
return new FPGAResponse()
{
Message = e.Message,
Status = false
};
}
ushort[] read = b.ReadBuffer.ToArray();
string logpath = Path.Combine(FPGAManager.GetConfigDir(), "WriteReadLog.txt");
var log = new FileStream(logpath, FileMode.Append, FileAccess.Write);
var writer = new StreamWriter(log);
await writer.WriteAsync("Write:");
foreach (ushort i in write)
await writer.WriteAsync(i + " ");
await writer.WriteAsync("\nRead:");
foreach (ushort i in read)
await writer.WriteAsync(i + " ");
await writer.WriteAsync("\n");
writer.Close();
log.Close();
return new FPGAResponse()
{
Message = "成功",
Status = true,
Data = b.ReadBuffer.ToArray()
};
}
[HttpGet("setprojectfile")]
public FPGAResponse SetProjectFile(string filename)
{
_logger.LogInformation("设置项目: " + filename);
_manager.CurrentProjectFile = filename;
return new FPGAResponse()
{
Message = filename,
Status = true,
ProjectPath = filename
};
}
/// <summary>
/// 初始化程序
/// 如果CurrentProjectFile提供了hwproj文件路径,则读取这个文件并把数据返回给UI
/// 如果CurrentProjectFile没有提供hwproj文件路径则不读取文件,UI显示开始页面
/// </summary>
/// <param name="filename"></param>
/// <returns></returns>
[HttpGet("init")]
public async Task<FPGAResponse> Init()
{
//_ = Task.Run(async () => await ElectronIPC.CheckUpdateAsync());
var filename = "";
if (string.IsNullOrEmpty(_manager.CurrentProjectFile))
{
//未指定打开文件文件
if (string.IsNullOrEmpty(Web.Program.LaunchingProject))
{
//也没有指定启动文件
//保持为空
}
else
{
//指定了启动文件
filename = Web.Program.LaunchingProject;
}
}
else
{
//已经指定打开文件
filename = _manager.CurrentProjectFile;
}
if (string.IsNullOrEmpty(filename))
{
//没有项目文件
//显示开始界面
//返回RecentProjects
_logger.LogInformation("没有项目文件");
await _manager.ReadRecentProjectAsync();
return new FPGAResponse()
{
Message = _manager.RecentProjectsRaw,
Status = false
};
}
_logger.LogInformation("打开项目文件: " + filename);
var fs = System.IO.File.Open(filename, FileMode.OpenOrCreate);
var sr = new StreamReader(fs);
var content = await sr.ReadToEndAsync();
sr.Close();
fs.Close();
//ReadPortsMap();
//将项目信息添加到RecentProjects
JObject pjJobj = JObject.Parse(content);
var pjName = pjJobj["projectName"].Value<string>();
await _manager.ReadRecentProjectAsync();
_manager.AddRecentProject(pjName, filename);
await _manager.SaveRecentProjectAsync();
return new FPGAResponse()
{
Message = content,
Status = true,
ProjectPath = filename,
IsDarkMode =
#if Windows
DarkMode.InDarkMode
#else
false
#endif
};
}
[HttpPost("writejson")]
public async Task<FPGAResponse> WriteJson([FromQuery] string filename, [FromBody] ProjectInfo data)
{
await System.IO.File.WriteAllTextAsync(filename, data.data);
_logger.LogInformation("已保存项目: " + filename);
//Electron.Notification.Show(new NotificationOptions("馄饨FPGA", "已保存"));
return new FPGAResponse()
{
Message = "成功",
Status = true
};
}
//没用上???
[HttpGet("readxmltojson")]
public FPGAResponse ReadXmlToJson(string filename)
{
var xml = new XmlDocument();
xml.Load(filename);
_logger.LogInformation("Read XML");
XmlNode design = xml.SelectSingleNode("design");
var json = JsonConvert.SerializeXmlNode(design);
return new FPGAResponse()
{
Message = json,
Status = true
};
}
[HttpGet("newproject")]
public async Task<FPGAResponse> NewProject(string projectdir, string projectname, string projectiofile)
{
var fullpath = Path.Combine(projectdir, projectname + ".hwproj");
_logger.LogInformation("新建项目: " + fullpath);
XmlDocument xml = new XmlDocument();
xml.Load(projectiofile);
JObject jports = new JObject();
XmlNode design = xml.SelectSingleNode("design");
var ports = design.ChildNodes;
for (int i = 0; i < ports.Count; i++)
{
var p = ports[i];
var attr = p.Attributes;
var name = attr.GetNamedItem("name").Value;
var pos = attr.GetNamedItem("position").Value;
jports.Add(name, pos);
}
JObject pj = new JObject();
pj.Add("subscribedInstances", new JObject());
pj.Add("hardwarePortsMap", new JObject());
pj.Add("inputPortsMap", new JObject());
pj.Add("projectInstancePortsMap", new JObject());
pj.Add("layout", new JArray());
pj.Add("projectPortsMap", jports);
pj.Add("portsIndexMap", new JObject());
pj.Add("xml", projectiofile);
pj.Add("bitfile", "");
pj.Add("projectName", projectname);
var json = pj.ToString();
await System.IO.File.WriteAllTextAsync(fullpath, json);
_manager.CurrentProjectFile = fullpath;
return new FPGAResponse()
{
Message = fullpath,
Status = true,
ProjectPath = fullpath
};
}
[HttpGet("waveform")]
public async Task<FPGAResponse> Waveform(int runhz, string portsmap)
{
//ReadPortsMap(); //因为每一次io传输都会新建一个fpgaController对象,所以要即建即用
Dictionary<string, string> ports = JsonConvert.DeserializeObject<Dictionary<string, string>>(portsmap);
var inputPortsIndexDict = new Dictionary<int, string>();
var outputPortsIndexDict = new Dictionary<int, string>();
foreach (KeyValuePair<string, string> i in ports)
{
if (inputDict.ContainsKey(i.Value))
inputPortsIndexDict.Add(inputDict[i.Value], i.Key);
else if (outputDict.ContainsKey(i.Value))
outputPortsIndexDict.Add(outputDict[i.Value], i.Key);
}
string mappath = Path.Combine(FPGAManager.GetConfigDir(), "PortsIndexMap.txt");
var maplog = new FileStream(mappath, FileMode.Create, FileAccess.Write);
var mapwriter = new StreamWriter(maplog);
//调试输出变量名和引脚序号的映射
await mapwriter.WriteLineAsync("Input:");
foreach (KeyValuePair<int, string> i in inputPortsIndexDict)
await mapwriter.WriteLineAsync(i.Key + " " + i.Value);
await mapwriter.WriteLineAsync("Output:");
foreach (KeyValuePair<int, string> i in outputPortsIndexDict)
await mapwriter.WriteLineAsync(i.Key + " " + i.Value);
mapwriter.Close();
maplog.Close();
//变成vcd
string logpath = Path.Combine(FPGAManager.GetConfigDir(), "WriteReadLog.txt");
//string vcdpath = Path.Combine(FPGAManager.GetConfigDir(), "VCDLog.txt");
string waveformpath = Path.Combine(FPGAManager.GetConfigDir(), "Waveform.vcd");
var log = new FileStream(logpath, FileMode.Open, FileAccess.Read);
var reader = new StreamReader(log);
var vcdlog = new FileStream(waveformpath, FileMode.Create, FileAccess.Write);
var writer = new StreamWriter(vcdlog);
await writer.WriteAsync("$timescale " + 1000 / (double)runhz + " ms\n$end\n");
foreach (KeyValuePair<int, string> i in inputPortsIndexDict)
await writer.WriteLineAsync("$var wire 1 " + i.Value + " " + i.Value + " $end");
foreach (KeyValuePair<int, string> i in outputPortsIndexDict)
await writer.WriteLineAsync("$var wire 1 " + i.Value + " " + i.Value + " $end");
await writer.WriteAsync("$enddefinitions $end\n$dumpvars\n");
foreach (KeyValuePair<int, string> i in inputPortsIndexDict)
await writer.WriteLineAsync("b0 " + i.Value);
foreach (KeyValuePair<int, string> i in outputPortsIndexDict)
await writer.WriteLineAsync("b0 " + i.Value);
await writer.WriteLineAsync("$end");
string line;
int cycle = 0;
string writepattern = @"Write:(\d*) (\d*) (\d*) (\d*)"; //4个int16的排列方式是15-0 31-16 47-32 63-48
string readpattern = @"Read:(\d*) (\d*) (\d*) (\d*)";
Regex writereg = new Regex(writepattern);
Regex readreg = new Regex(readpattern);
List<int> writehist = new List<int>(new int[64]);
List<int> readhist = new List<int>(new int[64]);
while ((line = await reader.ReadLineAsync()) != null)
{
Match writematch = writereg.Match(line);
if (writematch.Success)
{
List<ushort> tempfornum = new List<ushort>(); //4个int16
for (int i = 1; i < writematch.Groups.Count; i++)
tempfornum.Add(ushort.Parse(writematch.Groups[i].ToString()));
List<int> splitdata = SplitRawData(tempfornum); //64位
var dataforprint = new Dictionary<int, int>();
dataforprint = FilterRepetition(writehist, splitdata);
if (dataforprint.Count != 0)
{
await writer.WriteLineAsync("#" + cycle);
await writer.WriteAsync(PrintVcd(inputPortsIndexDict, dataforprint, cycle));
}
writehist = splitdata;
}
Match readmatch = readreg.Match(line);
if (readmatch.Success)
{
List<ushort> tempfornum = new List<ushort>();
for (int i = 1; i < readmatch.Groups.Count; i++)
tempfornum.Add(ushort.Parse(readmatch.Groups[i].ToString()));
List<int> splitdata = SplitRawData(tempfornum); //64位
var dataforprint = FilterRepetition(readhist, splitdata);
if (dataforprint.Count != 0)
{
await writer.WriteLineAsync("#" + cycle);
await writer.WriteAsync(PrintVcd(outputPortsIndexDict, dataforprint, cycle));
}
readhist = splitdata;
cycle++;
}
}
reader.Close();
log.Close();
writer.Close();
vcdlog.Close();
#if DEBUG
var t = new RunExeByProcess();
t.ProcessName = "gtkwave";
t.Argument = waveformpath;
t.Execute();
//if (code != 0)
//_logger.LogError("gtkwave error!");
#else
var t = new RunExeByProcess();
var path = Path.Combine(System.Environment.CurrentDirectory, "gtkwave", "bin", "gtkwave");
t.ProcessName = path;
t.Argument = waveformpath;
//Console.WriteLine(t.Execute());
t.Execute();
//if (code != 0)
//_logger.LogError("gtkwave error!");
#endif
return new FPGAResponse()
{
Message = "成功",
Status = true
};
}
internal List<int> SplitRawData(List<ushort> rawdata) //rawdata是4个uint16
{
var ans = new List<int>();
for (int i = 0; i < 4; i++)
{
ushort tempnum = rawdata[i];
for (int j = 0; j < 16; j++)
{
//int index = i * 16 + j;
int split = (tempnum >> j) & 1;
ans.Add(split);
}
}
//foreach (int i in ans)
//Console.Write(i + " ");
return ans;
}
internal Dictionary<int, int> FilterRepetition(List<int> prev, List<int> now)
{
var ans = new Dictionary<int, int>();
if (prev.Count != 64 || now.Count != 64)
{
_logger.LogError("Wrong split for data!");
return null;
}
for (int i = 0; i < 64; i++)
{
//Console.WriteLine(prev[i] + " " + now[i]);
if (prev[i] != now[i])
{
ans.Add(i, now[i]);
//Console.WriteLine("Success!");
}
}
//Console.WriteLine("new dict");
//foreach (KeyValuePair<int, int> i in ans)
//Console.WriteLine(i.Key + " " + i.Value);
return ans;
}
internal string PrintVcd(Dictionary<int, string> dict, Dictionary<int, int> data, int time)
{
string ans = "";
foreach (KeyValuePair<int, int> i in data)
{
if (dict.ContainsKey(i.Key))
{
string t = "b" + i.Value + " " + dict[i.Key] + "\n";
ans += t;
}
}
return ans;
}
}
class RunExeByProcess
{
public string ProcessName { get; set; }
//public string ObjectPath { get; set; }
public string Argument { get; set; }
internal void Execute()
{
//var tcs = new TaskCompletionSource<int>();
var process = new System.Diagnostics.Process();
process.StartInfo.FileName = ProcessName;
process.StartInfo.Arguments = Argument;
process.StartInfo.UseShellExecute = false;
//不显示exe的界面
process.StartInfo.CreateNoWindow = true;
//process.EnableRaisingEvents = true;
/*
process.Exited += (sender, args) =>
{
tcs.SetResult(process.ExitCode);
process.Dispose();
};
await Task.Run(() => process.Start());
return tcs.Task.Result;
*/
process.Start();
//await Task.Run(() => process.Start());
//return process.ExitCode;
}
}
} | 34.275449 | 115 | 0.450646 | [
"MIT"
] | WangyuHello/FudanFPGAInterface | Wonton.CrossUI.Web/Controllers/FPGAController.cs | 23,388 | C# |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using DDDSouthWest.Domain.Features.Public.ProposedTalkDetail;
using DDDSouthWest.Domain.Features.Public.ProposedTalks;
using DDDSouthWest.Website.Framework;
using DDDSouthWest.Website.ImageHandlers;
using MediatR;
using Microsoft.AspNetCore.Mvc;
namespace DDDSouthWest.Website.Features.Public.ProposedTalks
{
public class ProposedTalksController : Controller
{
private readonly IMediator _mediator;
private readonly ProfileImageHandler _profileImageHandler;
public ProposedTalksController(IMediator mediator, ProfileImageHandler profileImageHandler)
{
_mediator = mediator;
_profileImageHandler = profileImageHandler;
}
[Route("/proposed-talks/", Name = RouteNames.ProposedTalks)]
public async Task<IActionResult> Index()
{
var response = await _mediator.Send(new Domain.Features.Public.ProposedTalks.ProposedTalks.Query());
return View(new ProposedTalksViewModel
{
ProposedTalks = ToViewModel(response.ProposedTalks).ToList()
});
}
[Route("/proposed-talks/{id}/", Name = RouteNames.ProposedTalkDetail)]
public async Task<IActionResult> Detail(int id)
{
var response = await _mediator.Send(new ProposedTalkDetail.Query(id));
return View(new ProposedTalkDetailViewModel
{
ProposedTalk = response.ProposedTalkDetail,
});
}
private IEnumerable<ProposedTalkViewModel> ToViewModel(IEnumerable<ProposedTalksModel> model)
{
return model.Select(x =>
{
var image = _profileImageHandler.ResolveProfilePicture(x.SpeakerId);
return new ProposedTalkViewModel
{
SpeakerFamilyName = x.SpeakerFamilyName,
SpeakerGivenName = x.SpeakerGivenName,
SpeakerId = x.SpeakerId,
TalkSummary = x.TalkSummary,
TalkId = x.TalkId,
TalkTitle = x.TalkTitle,
ProfileImage = image.Path,
ProfileImageExists = image.Exists
};
});
}
}
} | 35.863636 | 112 | 0.618927 | [
"MIT"
] | JoeStead/dddsouthwest-web | src/DDDSouthWest.Website/Features/Public/ProposedTalks/ProposedTalksController.cs | 2,369 | C# |
/*
* MIT License
*
* Copyright (c) Microsoft Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Runtime.Serialization;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
#nullable enable
namespace Microsoft.Playwright
{
public enum SameSiteAttribute
{
[EnumMember(Value = "Strict")]
Strict,
[EnumMember(Value = "Lax")]
Lax,
[EnumMember(Value = "None")]
None,
}
}
#nullable disable
| 32.685185 | 81 | 0.745609 | [
"MIT"
] | Archish27/playwright-dotnet | src/Playwright/API/Generated/Enums/SameSiteAttribute.cs | 1,765 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace ParameterAPI.Models
{
public class AS400AppSettingModel : ParameterResponseModel
{
public string File { get; set; }
}
} | 19.666667 | 62 | 0.724576 | [
"MIT"
] | LHB-Deposit/CoreBankAPI | ParameterAPI/Models/AS400AppSettingModel.cs | 238 | C# |
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace OSS.PaySdk.Samples
{
public class Startup
{
public Startup(IHostingEnvironment env)
{
var builder = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
.AddEnvironmentVariables();
Configuration = builder.Build();
}
public IConfigurationRoot Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
// Add framework services.
services.AddMvc();
RegisterPayConfig();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
//app.UseBrowserLink();
}
else
{
app.UseExceptionHandler("/Home/Error");
}
app.UseStaticFiles();
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});
}
private static void RegisterPayConfig()
{
//WxPayConfigProvider.DefaultConfig = new WxPayCenterConfig
//{
// AppId = "XXXX"
// //.....
//};
//ZPayConfigProvider.DefaultConfig = new ZPayConfig()
//{
// AppId = "XXX",
// //....
//};
}
}
}
| 31.452055 | 109 | 0.5527 | [
"Apache-2.0"
] | fly4312/OSS.PaySdk | Samples/OSS.PaySdk.Samples/Startup.cs | 2,298 | C# |
using Amazon.JSII.Runtime.Deputy;
#pragma warning disable CS0672,CS0809,CS1591
namespace aws
{
#pragma warning disable CS8618
[JsiiByValue(fqn: "aws.DataAwsKmsKeyConfig")]
public class DataAwsKmsKeyConfig : aws.IDataAwsKmsKeyConfig
{
[JsiiProperty(name: "keyId", typeJson: "{\"primitive\":\"string\"}", isOverride: true)]
public string KeyId
{
get;
set;
}
[JsiiOptional]
[JsiiProperty(name: "grantTokens", typeJson: "{\"collection\":{\"elementtype\":{\"primitive\":\"string\"},\"kind\":\"array\"}}", isOptional: true, isOverride: true)]
public string[]? GrantTokens
{
get;
set;
}
/// <remarks>
/// <strong>Stability</strong>: Experimental
/// </remarks>
[JsiiOptional]
[JsiiProperty(name: "count", typeJson: "{\"primitive\":\"number\"}", isOptional: true, isOverride: true)]
public double? Count
{
get;
set;
}
/// <remarks>
/// <strong>Stability</strong>: Experimental
/// </remarks>
[JsiiOptional]
[JsiiProperty(name: "dependsOn", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"cdktf.ITerraformDependable\"},\"kind\":\"array\"}}", isOptional: true, isOverride: true)]
public HashiCorp.Cdktf.ITerraformDependable[]? DependsOn
{
get;
set;
}
/// <remarks>
/// <strong>Stability</strong>: Experimental
/// </remarks>
[JsiiOptional]
[JsiiProperty(name: "lifecycle", typeJson: "{\"fqn\":\"cdktf.TerraformResourceLifecycle\"}", isOptional: true, isOverride: true)]
public HashiCorp.Cdktf.ITerraformResourceLifecycle? Lifecycle
{
get;
set;
}
/// <remarks>
/// <strong>Stability</strong>: Experimental
/// </remarks>
[JsiiOptional]
[JsiiProperty(name: "provider", typeJson: "{\"fqn\":\"cdktf.TerraformProvider\"}", isOptional: true, isOverride: true)]
public HashiCorp.Cdktf.TerraformProvider? Provider
{
get;
set;
}
}
}
| 30.847222 | 185 | 0.549752 | [
"MIT"
] | scottenriquez/cdktf-alpha-csharp-testing | resources/.gen/aws/aws/DataAwsKmsKeyConfig.cs | 2,221 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#pragma warning disable 1591
namespace Belediye_Otomasyonu {
/// <summary>
///Represents a strongly typed in-memory cache of data.
///</summary>
[global::System.Serializable()]
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
[global::System.Xml.Serialization.XmlRootAttribute("belediyeDataSet")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
public partial class belediyeDataSet : global::System.Data.DataSet {
private FaturaDataTable tableFatura;
private FaturaBilgileriDataTable tableFaturaBilgileri;
private kisibilgilerDataTable tablekisibilgiler;
private PersonelDataTable tablePersonel;
private SikayetlerDataTable tableSikayetler;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public belediyeDataSet() {
this.BeginInit();
this.InitClass();
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
base.Relations.CollectionChanged += schemaChangedHandler;
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected belediyeDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context, false) {
if ((this.IsBinarySerialized(info, context) == true)) {
this.InitVars(false);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler1;
this.Relations.CollectionChanged += schemaChangedHandler1;
return;
}
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
if ((ds.Tables["Fatura"] != null)) {
base.Tables.Add(new FaturaDataTable(ds.Tables["Fatura"]));
}
if ((ds.Tables["FaturaBilgileri"] != null)) {
base.Tables.Add(new FaturaBilgileriDataTable(ds.Tables["FaturaBilgileri"]));
}
if ((ds.Tables["kisibilgiler"] != null)) {
base.Tables.Add(new kisibilgilerDataTable(ds.Tables["kisibilgiler"]));
}
if ((ds.Tables["Personel"] != null)) {
base.Tables.Add(new PersonelDataTable(ds.Tables["Personel"]));
}
if ((ds.Tables["Sikayetler"] != null)) {
base.Tables.Add(new SikayetlerDataTable(ds.Tables["Sikayetler"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
}
this.GetSerializationData(info, context);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public FaturaDataTable Fatura {
get {
return this.tableFatura;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public FaturaBilgileriDataTable FaturaBilgileri {
get {
return this.tableFaturaBilgileri;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public kisibilgilerDataTable kisibilgiler {
get {
return this.tablekisibilgiler;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public PersonelDataTable Personel {
get {
return this.tablePersonel;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public SikayetlerDataTable Sikayetler {
get {
return this.tableSikayetler;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
get {
return this._schemaSerializationMode;
}
set {
this._schemaSerializationMode = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new global::System.Data.DataTableCollection Tables {
get {
return base.Tables;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new global::System.Data.DataRelationCollection Relations {
get {
return base.Relations;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void InitializeDerivedDataSet() {
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataSet Clone() {
belediyeDataSet cln = ((belediyeDataSet)(base.Clone()));
cln.InitVars();
cln.SchemaSerializationMode = this.SchemaSerializationMode;
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override bool ShouldSerializeTables() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override bool ShouldSerializeRelations() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
this.Reset();
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXml(reader);
if ((ds.Tables["Fatura"] != null)) {
base.Tables.Add(new FaturaDataTable(ds.Tables["Fatura"]));
}
if ((ds.Tables["FaturaBilgileri"] != null)) {
base.Tables.Add(new FaturaBilgileriDataTable(ds.Tables["FaturaBilgileri"]));
}
if ((ds.Tables["kisibilgiler"] != null)) {
base.Tables.Add(new kisibilgilerDataTable(ds.Tables["kisibilgiler"]));
}
if ((ds.Tables["Personel"] != null)) {
base.Tables.Add(new PersonelDataTable(ds.Tables["Personel"]));
}
if ((ds.Tables["Sikayetler"] != null)) {
base.Tables.Add(new SikayetlerDataTable(ds.Tables["Sikayetler"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXml(reader);
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
stream.Position = 0;
return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.InitVars(true);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars(bool initTable) {
this.tableFatura = ((FaturaDataTable)(base.Tables["Fatura"]));
if ((initTable == true)) {
if ((this.tableFatura != null)) {
this.tableFatura.InitVars();
}
}
this.tableFaturaBilgileri = ((FaturaBilgileriDataTable)(base.Tables["FaturaBilgileri"]));
if ((initTable == true)) {
if ((this.tableFaturaBilgileri != null)) {
this.tableFaturaBilgileri.InitVars();
}
}
this.tablekisibilgiler = ((kisibilgilerDataTable)(base.Tables["kisibilgiler"]));
if ((initTable == true)) {
if ((this.tablekisibilgiler != null)) {
this.tablekisibilgiler.InitVars();
}
}
this.tablePersonel = ((PersonelDataTable)(base.Tables["Personel"]));
if ((initTable == true)) {
if ((this.tablePersonel != null)) {
this.tablePersonel.InitVars();
}
}
this.tableSikayetler = ((SikayetlerDataTable)(base.Tables["Sikayetler"]));
if ((initTable == true)) {
if ((this.tableSikayetler != null)) {
this.tableSikayetler.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.DataSetName = "belediyeDataSet";
this.Prefix = "";
this.Namespace = "http://tempuri.org/belediyeDataSet1.xsd";
this.EnforceConstraints = true;
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
this.tableFatura = new FaturaDataTable();
base.Tables.Add(this.tableFatura);
this.tableFaturaBilgileri = new FaturaBilgileriDataTable();
base.Tables.Add(this.tableFaturaBilgileri);
this.tablekisibilgiler = new kisibilgilerDataTable();
base.Tables.Add(this.tablekisibilgiler);
this.tablePersonel = new PersonelDataTable();
base.Tables.Add(this.tablePersonel);
this.tableSikayetler = new SikayetlerDataTable();
base.Tables.Add(this.tableSikayetler);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializeFatura() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializeFaturaBilgileri() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializekisibilgiler() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializePersonel() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private bool ShouldSerializeSikayetler() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
belediyeDataSet ds = new belediyeDataSet();
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
any.Namespace = ds.Namespace;
sequence.Items.Add(any);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void FaturaRowChangeEventHandler(object sender, FaturaRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void FaturaBilgileriRowChangeEventHandler(object sender, FaturaBilgileriRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void kisibilgilerRowChangeEventHandler(object sender, kisibilgilerRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void PersonelRowChangeEventHandler(object sender, PersonelRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public delegate void SikayetlerRowChangeEventHandler(object sender, SikayetlerRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class FaturaDataTable : global::System.Data.TypedTableBase<FaturaRow> {
private global::System.Data.DataColumn columnTC_NO;
private global::System.Data.DataColumn columnel_aboneno;
private global::System.Data.DataColumn columnelektrik_borcu;
private global::System.Data.DataColumn columnel_odemetarihi;
private global::System.Data.DataColumn columnsu_aboneno;
private global::System.Data.DataColumn columnsu_borcu;
private global::System.Data.DataColumn columnsu_odemetarihi;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaDataTable() {
this.TableName = "Fatura";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal FaturaDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected FaturaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn TC_NOColumn {
get {
return this.columnTC_NO;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn el_abonenoColumn {
get {
return this.columnel_aboneno;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn elektrik_borcuColumn {
get {
return this.columnelektrik_borcu;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn el_odemetarihiColumn {
get {
return this.columnel_odemetarihi;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn su_abonenoColumn {
get {
return this.columnsu_aboneno;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn su_borcuColumn {
get {
return this.columnsu_borcu;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn su_odemetarihiColumn {
get {
return this.columnsu_odemetarihi;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaRow this[int index] {
get {
return ((FaturaRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event FaturaRowChangeEventHandler FaturaRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event FaturaRowChangeEventHandler FaturaRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event FaturaRowChangeEventHandler FaturaRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event FaturaRowChangeEventHandler FaturaRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void AddFaturaRow(FaturaRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaRow AddFaturaRow(string TC_NO, string el_aboneno, string elektrik_borcu, string el_odemetarihi, string su_aboneno, string su_borcu, string su_odemetarihi) {
FaturaRow rowFaturaRow = ((FaturaRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
TC_NO,
el_aboneno,
elektrik_borcu,
el_odemetarihi,
su_aboneno,
su_borcu,
su_odemetarihi};
rowFaturaRow.ItemArray = columnValuesArray;
this.Rows.Add(rowFaturaRow);
return rowFaturaRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataTable Clone() {
FaturaDataTable cln = ((FaturaDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new FaturaDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnTC_NO = base.Columns["TC_NO"];
this.columnel_aboneno = base.Columns["el_aboneno"];
this.columnelektrik_borcu = base.Columns["elektrik_borcu"];
this.columnel_odemetarihi = base.Columns["el_odemetarihi"];
this.columnsu_aboneno = base.Columns["su_aboneno"];
this.columnsu_borcu = base.Columns["su_borcu"];
this.columnsu_odemetarihi = base.Columns["su_odemetarihi"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.columnTC_NO = new global::System.Data.DataColumn("TC_NO", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnTC_NO);
this.columnel_aboneno = new global::System.Data.DataColumn("el_aboneno", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnel_aboneno);
this.columnelektrik_borcu = new global::System.Data.DataColumn("elektrik_borcu", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnelektrik_borcu);
this.columnel_odemetarihi = new global::System.Data.DataColumn("el_odemetarihi", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnel_odemetarihi);
this.columnsu_aboneno = new global::System.Data.DataColumn("su_aboneno", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsu_aboneno);
this.columnsu_borcu = new global::System.Data.DataColumn("su_borcu", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsu_borcu);
this.columnsu_odemetarihi = new global::System.Data.DataColumn("su_odemetarihi", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsu_odemetarihi);
this.columnTC_NO.MaxLength = 11;
this.columnel_aboneno.MaxLength = 255;
this.columnelektrik_borcu.MaxLength = 255;
this.columnel_odemetarihi.MaxLength = 255;
this.columnsu_aboneno.MaxLength = 255;
this.columnsu_borcu.MaxLength = 255;
this.columnsu_odemetarihi.MaxLength = 255;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaRow NewFaturaRow() {
return ((FaturaRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new FaturaRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(FaturaRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.FaturaRowChanged != null)) {
this.FaturaRowChanged(this, new FaturaRowChangeEvent(((FaturaRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.FaturaRowChanging != null)) {
this.FaturaRowChanging(this, new FaturaRowChangeEvent(((FaturaRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.FaturaRowDeleted != null)) {
this.FaturaRowDeleted(this, new FaturaRowChangeEvent(((FaturaRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.FaturaRowDeleting != null)) {
this.FaturaRowDeleting(this, new FaturaRowChangeEvent(((FaturaRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void RemoveFaturaRow(FaturaRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
belediyeDataSet ds = new belediyeDataSet();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "FaturaDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class FaturaBilgileriDataTable : global::System.Data.TypedTableBase<FaturaBilgileriRow> {
private global::System.Data.DataColumn columnkw_gunduz;
private global::System.Data.DataColumn columnkw_puant;
private global::System.Data.DataColumn columnkw_gece;
private global::System.Data.DataColumn columndagitim_birim;
private global::System.Data.DataColumn columnper_birim;
private global::System.Data.DataColumn columnpsh_birim;
private global::System.Data.DataColumn columnpsh_toplam;
private global::System.Data.DataColumn columnenerji_toplam;
private global::System.Data.DataColumn columntrt_toplam;
private global::System.Data.DataColumn columnelek_toplam;
private global::System.Data.DataColumn columnelek_kdv;
private global::System.Data.DataColumn columnbkm_bedel;
private global::System.Data.DataColumn columncevre_vergi;
private global::System.Data.DataColumn columnsu_kdv;
private global::System.Data.DataColumn columnsu_birim;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaBilgileriDataTable() {
this.TableName = "FaturaBilgileri";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal FaturaBilgileriDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected FaturaBilgileriDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn kw_gunduzColumn {
get {
return this.columnkw_gunduz;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn kw_puantColumn {
get {
return this.columnkw_puant;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn kw_geceColumn {
get {
return this.columnkw_gece;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn dagitim_birimColumn {
get {
return this.columndagitim_birim;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn per_birimColumn {
get {
return this.columnper_birim;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn psh_birimColumn {
get {
return this.columnpsh_birim;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn psh_toplamColumn {
get {
return this.columnpsh_toplam;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn enerji_toplamColumn {
get {
return this.columnenerji_toplam;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn trt_toplamColumn {
get {
return this.columntrt_toplam;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn elek_toplamColumn {
get {
return this.columnelek_toplam;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn elek_kdvColumn {
get {
return this.columnelek_kdv;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn bkm_bedelColumn {
get {
return this.columnbkm_bedel;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn cevre_vergiColumn {
get {
return this.columncevre_vergi;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn su_kdvColumn {
get {
return this.columnsu_kdv;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn su_birimColumn {
get {
return this.columnsu_birim;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaBilgileriRow this[int index] {
get {
return ((FaturaBilgileriRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event FaturaBilgileriRowChangeEventHandler FaturaBilgileriRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event FaturaBilgileriRowChangeEventHandler FaturaBilgileriRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event FaturaBilgileriRowChangeEventHandler FaturaBilgileriRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event FaturaBilgileriRowChangeEventHandler FaturaBilgileriRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void AddFaturaBilgileriRow(FaturaBilgileriRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaBilgileriRow AddFaturaBilgileriRow(string kw_gunduz, string kw_puant, string kw_gece, string dagitim_birim, string per_birim, string psh_birim, string psh_toplam, string enerji_toplam, string trt_toplam, string elek_toplam, string elek_kdv, string bkm_bedel, string cevre_vergi, string su_kdv, string su_birim) {
FaturaBilgileriRow rowFaturaBilgileriRow = ((FaturaBilgileriRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
kw_gunduz,
kw_puant,
kw_gece,
dagitim_birim,
per_birim,
psh_birim,
psh_toplam,
enerji_toplam,
trt_toplam,
elek_toplam,
elek_kdv,
bkm_bedel,
cevre_vergi,
su_kdv,
su_birim};
rowFaturaBilgileriRow.ItemArray = columnValuesArray;
this.Rows.Add(rowFaturaBilgileriRow);
return rowFaturaBilgileriRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataTable Clone() {
FaturaBilgileriDataTable cln = ((FaturaBilgileriDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new FaturaBilgileriDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnkw_gunduz = base.Columns["kw_gunduz"];
this.columnkw_puant = base.Columns["kw_puant"];
this.columnkw_gece = base.Columns["kw_gece"];
this.columndagitim_birim = base.Columns["dagitim_birim"];
this.columnper_birim = base.Columns["per_birim"];
this.columnpsh_birim = base.Columns["psh_birim"];
this.columnpsh_toplam = base.Columns["psh_toplam"];
this.columnenerji_toplam = base.Columns["enerji_toplam"];
this.columntrt_toplam = base.Columns["trt_toplam"];
this.columnelek_toplam = base.Columns["elek_toplam"];
this.columnelek_kdv = base.Columns["elek_kdv"];
this.columnbkm_bedel = base.Columns["bkm_bedel"];
this.columncevre_vergi = base.Columns["cevre_vergi"];
this.columnsu_kdv = base.Columns["su_kdv"];
this.columnsu_birim = base.Columns["su_birim"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.columnkw_gunduz = new global::System.Data.DataColumn("kw_gunduz", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnkw_gunduz);
this.columnkw_puant = new global::System.Data.DataColumn("kw_puant", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnkw_puant);
this.columnkw_gece = new global::System.Data.DataColumn("kw_gece", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnkw_gece);
this.columndagitim_birim = new global::System.Data.DataColumn("dagitim_birim", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columndagitim_birim);
this.columnper_birim = new global::System.Data.DataColumn("per_birim", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnper_birim);
this.columnpsh_birim = new global::System.Data.DataColumn("psh_birim", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnpsh_birim);
this.columnpsh_toplam = new global::System.Data.DataColumn("psh_toplam", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnpsh_toplam);
this.columnenerji_toplam = new global::System.Data.DataColumn("enerji_toplam", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnenerji_toplam);
this.columntrt_toplam = new global::System.Data.DataColumn("trt_toplam", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columntrt_toplam);
this.columnelek_toplam = new global::System.Data.DataColumn("elek_toplam", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnelek_toplam);
this.columnelek_kdv = new global::System.Data.DataColumn("elek_kdv", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnelek_kdv);
this.columnbkm_bedel = new global::System.Data.DataColumn("bkm_bedel", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnbkm_bedel);
this.columncevre_vergi = new global::System.Data.DataColumn("cevre_vergi", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columncevre_vergi);
this.columnsu_kdv = new global::System.Data.DataColumn("su_kdv", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsu_kdv);
this.columnsu_birim = new global::System.Data.DataColumn("su_birim", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnsu_birim);
this.columnkw_gunduz.MaxLength = 255;
this.columnkw_puant.MaxLength = 255;
this.columnkw_gece.MaxLength = 255;
this.columndagitim_birim.MaxLength = 255;
this.columnper_birim.MaxLength = 255;
this.columnpsh_birim.MaxLength = 255;
this.columnpsh_toplam.MaxLength = 255;
this.columnenerji_toplam.MaxLength = 255;
this.columntrt_toplam.MaxLength = 255;
this.columnelek_toplam.MaxLength = 255;
this.columnelek_kdv.MaxLength = 255;
this.columnbkm_bedel.MaxLength = 255;
this.columncevre_vergi.MaxLength = 255;
this.columnsu_kdv.MaxLength = 255;
this.columnsu_birim.MaxLength = 255;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaBilgileriRow NewFaturaBilgileriRow() {
return ((FaturaBilgileriRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new FaturaBilgileriRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(FaturaBilgileriRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.FaturaBilgileriRowChanged != null)) {
this.FaturaBilgileriRowChanged(this, new FaturaBilgileriRowChangeEvent(((FaturaBilgileriRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.FaturaBilgileriRowChanging != null)) {
this.FaturaBilgileriRowChanging(this, new FaturaBilgileriRowChangeEvent(((FaturaBilgileriRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.FaturaBilgileriRowDeleted != null)) {
this.FaturaBilgileriRowDeleted(this, new FaturaBilgileriRowChangeEvent(((FaturaBilgileriRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.FaturaBilgileriRowDeleting != null)) {
this.FaturaBilgileriRowDeleting(this, new FaturaBilgileriRowChangeEvent(((FaturaBilgileriRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void RemoveFaturaBilgileriRow(FaturaBilgileriRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
belediyeDataSet ds = new belediyeDataSet();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "FaturaBilgileriDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class kisibilgilerDataTable : global::System.Data.TypedTableBase<kisibilgilerRow> {
private global::System.Data.DataColumn columnID;
private global::System.Data.DataColumn columnTC_NO;
private global::System.Data.DataColumn columnSOYADI;
private global::System.Data.DataColumn columnADI;
private global::System.Data.DataColumn columnBABA_ADI;
private global::System.Data.DataColumn columnANA_ADI;
private global::System.Data.DataColumn columnDOGUM_YERI;
private global::System.Data.DataColumn columnDOGUM_TARIHI;
private global::System.Data.DataColumn columnMEDENI_HALI;
private global::System.Data.DataColumn columnDINI;
private global::System.Data.DataColumn columnKAN_GRUBU;
private global::System.Data.DataColumn columnILI;
private global::System.Data.DataColumn columnILCESI;
private global::System.Data.DataColumn columnMAHALLE_KOY;
private global::System.Data.DataColumn columnCILT_NO;
private global::System.Data.DataColumn columnAILESIRA_NO;
private global::System.Data.DataColumn columnSIRA_NO;
private global::System.Data.DataColumn columnVERILDIGI_YER;
private global::System.Data.DataColumn columnVERILIS_NEDENI;
private global::System.Data.DataColumn columnKAYIT_NO;
private global::System.Data.DataColumn columnVERILIS_TARIHI;
private global::System.Data.DataColumn columnONCEKI_SOYADI;
private global::System.Data.DataColumn columnMESLEGI;
private global::System.Data.DataColumn columnOGRENIM_DURUMU;
private global::System.Data.DataColumn columnASKKAYIT_NO;
private global::System.Data.DataColumn columnCEP_TEL;
private global::System.Data.DataColumn columnVERGI_NO;
private global::System.Data.DataColumn columnVERGI_DAIRESI;
private global::System.Data.DataColumn columnKAYIT_TARIHI;
private global::System.Data.DataColumn columnSEMT_MAH;
private global::System.Data.DataColumn columnCADDE;
private global::System.Data.DataColumn columnSOKAK;
private global::System.Data.DataColumn columnSITE;
private global::System.Data.DataColumn columnAPT_ADI;
private global::System.Data.DataColumn columnBINA_NO;
private global::System.Data.DataColumn columnDAIRE_NO;
private global::System.Data.DataColumn columnIL;
private global::System.Data.DataColumn columnILCE;
private global::System.Data.DataColumn columnBUCAK_KOY;
private global::System.Data.DataColumn columnOTURDUGU_EV;
private global::System.Data.DataColumn columnFAKIRLIK_DERECE;
private global::System.Data.DataColumn columnKONUT_TURU;
private global::System.Data.DataColumn columnODA_SAYISI;
private global::System.Data.DataColumn columnM2;
private global::System.Data.DataColumn columnRESIM_ADRESI;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public kisibilgilerDataTable() {
this.TableName = "kisibilgiler";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal kisibilgilerDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected kisibilgilerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn IDColumn {
get {
return this.columnID;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn TC_NOColumn {
get {
return this.columnTC_NO;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn SOYADIColumn {
get {
return this.columnSOYADI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn ADIColumn {
get {
return this.columnADI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn BABA_ADIColumn {
get {
return this.columnBABA_ADI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn ANA_ADIColumn {
get {
return this.columnANA_ADI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn DOGUM_YERIColumn {
get {
return this.columnDOGUM_YERI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn DOGUM_TARIHIColumn {
get {
return this.columnDOGUM_TARIHI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn MEDENI_HALIColumn {
get {
return this.columnMEDENI_HALI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn DINIColumn {
get {
return this.columnDINI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn KAN_GRUBUColumn {
get {
return this.columnKAN_GRUBU;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn ILIColumn {
get {
return this.columnILI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn ILCESIColumn {
get {
return this.columnILCESI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn MAHALLE_KOYColumn {
get {
return this.columnMAHALLE_KOY;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn CILT_NOColumn {
get {
return this.columnCILT_NO;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn AILESIRA_NOColumn {
get {
return this.columnAILESIRA_NO;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn SIRA_NOColumn {
get {
return this.columnSIRA_NO;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn VERILDIGI_YERColumn {
get {
return this.columnVERILDIGI_YER;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn VERILIS_NEDENIColumn {
get {
return this.columnVERILIS_NEDENI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn KAYIT_NOColumn {
get {
return this.columnKAYIT_NO;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn VERILIS_TARIHIColumn {
get {
return this.columnVERILIS_TARIHI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn ONCEKI_SOYADIColumn {
get {
return this.columnONCEKI_SOYADI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn MESLEGIColumn {
get {
return this.columnMESLEGI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn OGRENIM_DURUMUColumn {
get {
return this.columnOGRENIM_DURUMU;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn ASKKAYIT_NOColumn {
get {
return this.columnASKKAYIT_NO;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn CEP_TELColumn {
get {
return this.columnCEP_TEL;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn VERGI_NOColumn {
get {
return this.columnVERGI_NO;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn VERGI_DAIRESIColumn {
get {
return this.columnVERGI_DAIRESI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn KAYIT_TARIHIColumn {
get {
return this.columnKAYIT_TARIHI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn SEMT_MAHColumn {
get {
return this.columnSEMT_MAH;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn CADDEColumn {
get {
return this.columnCADDE;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn SOKAKColumn {
get {
return this.columnSOKAK;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn SITEColumn {
get {
return this.columnSITE;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn APT_ADIColumn {
get {
return this.columnAPT_ADI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn BINA_NOColumn {
get {
return this.columnBINA_NO;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn DAIRE_NOColumn {
get {
return this.columnDAIRE_NO;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn ILColumn {
get {
return this.columnIL;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn ILCEColumn {
get {
return this.columnILCE;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn BUCAK_KOYColumn {
get {
return this.columnBUCAK_KOY;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn OTURDUGU_EVColumn {
get {
return this.columnOTURDUGU_EV;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn FAKIRLIK_DERECEColumn {
get {
return this.columnFAKIRLIK_DERECE;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn KONUT_TURUColumn {
get {
return this.columnKONUT_TURU;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn ODA_SAYISIColumn {
get {
return this.columnODA_SAYISI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn M2Column {
get {
return this.columnM2;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn RESIM_ADRESIColumn {
get {
return this.columnRESIM_ADRESI;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public kisibilgilerRow this[int index] {
get {
return ((kisibilgilerRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event kisibilgilerRowChangeEventHandler kisibilgilerRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event kisibilgilerRowChangeEventHandler kisibilgilerRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event kisibilgilerRowChangeEventHandler kisibilgilerRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event kisibilgilerRowChangeEventHandler kisibilgilerRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void AddkisibilgilerRow(kisibilgilerRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public kisibilgilerRow AddkisibilgilerRow(
string TC_NO,
string SOYADI,
string ADI,
string BABA_ADI,
string ANA_ADI,
string DOGUM_YERI,
string DOGUM_TARIHI,
string MEDENI_HALI,
string DINI,
string KAN_GRUBU,
string ILI,
string ILCESI,
string MAHALLE_KOY,
string CILT_NO,
string AILESIRA_NO,
string SIRA_NO,
string VERILDIGI_YER,
string VERILIS_NEDENI,
string KAYIT_NO,
string VERILIS_TARIHI,
string ONCEKI_SOYADI,
string MESLEGI,
string OGRENIM_DURUMU,
string ASKKAYIT_NO,
string CEP_TEL,
string VERGI_NO,
string VERGI_DAIRESI,
string KAYIT_TARIHI,
string SEMT_MAH,
string CADDE,
string SOKAK,
string SITE,
string APT_ADI,
string BINA_NO,
string DAIRE_NO,
string IL,
string ILCE,
string BUCAK_KOY,
string OTURDUGU_EV,
string FAKIRLIK_DERECE,
string KONUT_TURU,
string ODA_SAYISI,
string M2,
string RESIM_ADRESI) {
kisibilgilerRow rowkisibilgilerRow = ((kisibilgilerRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
TC_NO,
SOYADI,
ADI,
BABA_ADI,
ANA_ADI,
DOGUM_YERI,
DOGUM_TARIHI,
MEDENI_HALI,
DINI,
KAN_GRUBU,
ILI,
ILCESI,
MAHALLE_KOY,
CILT_NO,
AILESIRA_NO,
SIRA_NO,
VERILDIGI_YER,
VERILIS_NEDENI,
KAYIT_NO,
VERILIS_TARIHI,
ONCEKI_SOYADI,
MESLEGI,
OGRENIM_DURUMU,
ASKKAYIT_NO,
CEP_TEL,
VERGI_NO,
VERGI_DAIRESI,
KAYIT_TARIHI,
SEMT_MAH,
CADDE,
SOKAK,
SITE,
APT_ADI,
BINA_NO,
DAIRE_NO,
IL,
ILCE,
BUCAK_KOY,
OTURDUGU_EV,
FAKIRLIK_DERECE,
KONUT_TURU,
ODA_SAYISI,
M2,
RESIM_ADRESI};
rowkisibilgilerRow.ItemArray = columnValuesArray;
this.Rows.Add(rowkisibilgilerRow);
return rowkisibilgilerRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public kisibilgilerRow FindByTC_NO(string TC_NO) {
return ((kisibilgilerRow)(this.Rows.Find(new object[] {
TC_NO})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataTable Clone() {
kisibilgilerDataTable cln = ((kisibilgilerDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new kisibilgilerDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnID = base.Columns["ID"];
this.columnTC_NO = base.Columns["TC_NO"];
this.columnSOYADI = base.Columns["SOYADI"];
this.columnADI = base.Columns["ADI"];
this.columnBABA_ADI = base.Columns["BABA_ADI"];
this.columnANA_ADI = base.Columns["ANA_ADI"];
this.columnDOGUM_YERI = base.Columns["DOGUM_YERI"];
this.columnDOGUM_TARIHI = base.Columns["DOGUM_TARIHI"];
this.columnMEDENI_HALI = base.Columns["MEDENI_HALI"];
this.columnDINI = base.Columns["DINI"];
this.columnKAN_GRUBU = base.Columns["KAN_GRUBU"];
this.columnILI = base.Columns["ILI"];
this.columnILCESI = base.Columns["ILCESI"];
this.columnMAHALLE_KOY = base.Columns["MAHALLE_KOY"];
this.columnCILT_NO = base.Columns["CILT_NO"];
this.columnAILESIRA_NO = base.Columns["AILESIRA_NO"];
this.columnSIRA_NO = base.Columns["SIRA_NO"];
this.columnVERILDIGI_YER = base.Columns["VERILDIGI_YER"];
this.columnVERILIS_NEDENI = base.Columns["VERILIS_NEDENI"];
this.columnKAYIT_NO = base.Columns["KAYIT_NO"];
this.columnVERILIS_TARIHI = base.Columns["VERILIS_TARIHI"];
this.columnONCEKI_SOYADI = base.Columns["ONCEKI_SOYADI"];
this.columnMESLEGI = base.Columns["MESLEGI"];
this.columnOGRENIM_DURUMU = base.Columns["OGRENIM_DURUMU"];
this.columnASKKAYIT_NO = base.Columns["ASKKAYIT_NO"];
this.columnCEP_TEL = base.Columns["CEP_TEL"];
this.columnVERGI_NO = base.Columns["VERGI_NO"];
this.columnVERGI_DAIRESI = base.Columns["VERGI_DAIRESI"];
this.columnKAYIT_TARIHI = base.Columns["KAYIT_TARIHI"];
this.columnSEMT_MAH = base.Columns["SEMT_MAH"];
this.columnCADDE = base.Columns["CADDE"];
this.columnSOKAK = base.Columns["SOKAK"];
this.columnSITE = base.Columns["SITE"];
this.columnAPT_ADI = base.Columns["APT_ADI"];
this.columnBINA_NO = base.Columns["BINA_NO"];
this.columnDAIRE_NO = base.Columns["DAIRE_NO"];
this.columnIL = base.Columns["IL"];
this.columnILCE = base.Columns["ILCE"];
this.columnBUCAK_KOY = base.Columns["BUCAK_KOY"];
this.columnOTURDUGU_EV = base.Columns["OTURDUGU_EV"];
this.columnFAKIRLIK_DERECE = base.Columns["FAKIRLIK_DERECE"];
this.columnKONUT_TURU = base.Columns["KONUT_TURU"];
this.columnODA_SAYISI = base.Columns["ODA_SAYISI"];
this.columnM2 = base.Columns["M2"];
this.columnRESIM_ADRESI = base.Columns["RESIM_ADRESI"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnID);
this.columnTC_NO = new global::System.Data.DataColumn("TC_NO", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnTC_NO);
this.columnSOYADI = new global::System.Data.DataColumn("SOYADI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSOYADI);
this.columnADI = new global::System.Data.DataColumn("ADI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnADI);
this.columnBABA_ADI = new global::System.Data.DataColumn("BABA_ADI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnBABA_ADI);
this.columnANA_ADI = new global::System.Data.DataColumn("ANA_ADI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnANA_ADI);
this.columnDOGUM_YERI = new global::System.Data.DataColumn("DOGUM_YERI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDOGUM_YERI);
this.columnDOGUM_TARIHI = new global::System.Data.DataColumn("DOGUM_TARIHI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDOGUM_TARIHI);
this.columnMEDENI_HALI = new global::System.Data.DataColumn("MEDENI_HALI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnMEDENI_HALI);
this.columnDINI = new global::System.Data.DataColumn("DINI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDINI);
this.columnKAN_GRUBU = new global::System.Data.DataColumn("KAN_GRUBU", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnKAN_GRUBU);
this.columnILI = new global::System.Data.DataColumn("ILI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnILI);
this.columnILCESI = new global::System.Data.DataColumn("ILCESI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnILCESI);
this.columnMAHALLE_KOY = new global::System.Data.DataColumn("MAHALLE_KOY", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnMAHALLE_KOY);
this.columnCILT_NO = new global::System.Data.DataColumn("CILT_NO", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCILT_NO);
this.columnAILESIRA_NO = new global::System.Data.DataColumn("AILESIRA_NO", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnAILESIRA_NO);
this.columnSIRA_NO = new global::System.Data.DataColumn("SIRA_NO", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSIRA_NO);
this.columnVERILDIGI_YER = new global::System.Data.DataColumn("VERILDIGI_YER", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnVERILDIGI_YER);
this.columnVERILIS_NEDENI = new global::System.Data.DataColumn("VERILIS_NEDENI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnVERILIS_NEDENI);
this.columnKAYIT_NO = new global::System.Data.DataColumn("KAYIT_NO", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnKAYIT_NO);
this.columnVERILIS_TARIHI = new global::System.Data.DataColumn("VERILIS_TARIHI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnVERILIS_TARIHI);
this.columnONCEKI_SOYADI = new global::System.Data.DataColumn("ONCEKI_SOYADI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnONCEKI_SOYADI);
this.columnMESLEGI = new global::System.Data.DataColumn("MESLEGI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnMESLEGI);
this.columnOGRENIM_DURUMU = new global::System.Data.DataColumn("OGRENIM_DURUMU", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOGRENIM_DURUMU);
this.columnASKKAYIT_NO = new global::System.Data.DataColumn("ASKKAYIT_NO", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnASKKAYIT_NO);
this.columnCEP_TEL = new global::System.Data.DataColumn("CEP_TEL", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCEP_TEL);
this.columnVERGI_NO = new global::System.Data.DataColumn("VERGI_NO", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnVERGI_NO);
this.columnVERGI_DAIRESI = new global::System.Data.DataColumn("VERGI_DAIRESI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnVERGI_DAIRESI);
this.columnKAYIT_TARIHI = new global::System.Data.DataColumn("KAYIT_TARIHI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnKAYIT_TARIHI);
this.columnSEMT_MAH = new global::System.Data.DataColumn("SEMT_MAH", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSEMT_MAH);
this.columnCADDE = new global::System.Data.DataColumn("CADDE", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCADDE);
this.columnSOKAK = new global::System.Data.DataColumn("SOKAK", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSOKAK);
this.columnSITE = new global::System.Data.DataColumn("SITE", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSITE);
this.columnAPT_ADI = new global::System.Data.DataColumn("APT_ADI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnAPT_ADI);
this.columnBINA_NO = new global::System.Data.DataColumn("BINA_NO", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnBINA_NO);
this.columnDAIRE_NO = new global::System.Data.DataColumn("DAIRE_NO", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDAIRE_NO);
this.columnIL = new global::System.Data.DataColumn("IL", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnIL);
this.columnILCE = new global::System.Data.DataColumn("ILCE", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnILCE);
this.columnBUCAK_KOY = new global::System.Data.DataColumn("BUCAK_KOY", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnBUCAK_KOY);
this.columnOTURDUGU_EV = new global::System.Data.DataColumn("OTURDUGU_EV", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnOTURDUGU_EV);
this.columnFAKIRLIK_DERECE = new global::System.Data.DataColumn("FAKIRLIK_DERECE", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnFAKIRLIK_DERECE);
this.columnKONUT_TURU = new global::System.Data.DataColumn("KONUT_TURU", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnKONUT_TURU);
this.columnODA_SAYISI = new global::System.Data.DataColumn("ODA_SAYISI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnODA_SAYISI);
this.columnM2 = new global::System.Data.DataColumn("M2", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnM2);
this.columnRESIM_ADRESI = new global::System.Data.DataColumn("RESIM_ADRESI", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnRESIM_ADRESI);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnTC_NO}, true));
this.columnID.AutoIncrement = true;
this.columnID.AutoIncrementSeed = -1;
this.columnID.AutoIncrementStep = -1;
this.columnTC_NO.AllowDBNull = false;
this.columnTC_NO.Unique = true;
this.columnTC_NO.MaxLength = 11;
this.columnSOYADI.MaxLength = 255;
this.columnADI.MaxLength = 255;
this.columnBABA_ADI.MaxLength = 255;
this.columnANA_ADI.MaxLength = 255;
this.columnDOGUM_YERI.MaxLength = 255;
this.columnDOGUM_TARIHI.MaxLength = 255;
this.columnMEDENI_HALI.MaxLength = 255;
this.columnDINI.MaxLength = 255;
this.columnKAN_GRUBU.MaxLength = 255;
this.columnILI.MaxLength = 255;
this.columnILCESI.MaxLength = 255;
this.columnMAHALLE_KOY.MaxLength = 255;
this.columnCILT_NO.MaxLength = 255;
this.columnAILESIRA_NO.MaxLength = 255;
this.columnSIRA_NO.MaxLength = 255;
this.columnVERILDIGI_YER.MaxLength = 255;
this.columnVERILIS_NEDENI.MaxLength = 255;
this.columnKAYIT_NO.MaxLength = 255;
this.columnVERILIS_TARIHI.MaxLength = 255;
this.columnONCEKI_SOYADI.MaxLength = 255;
this.columnMESLEGI.MaxLength = 255;
this.columnOGRENIM_DURUMU.MaxLength = 255;
this.columnASKKAYIT_NO.MaxLength = 255;
this.columnCEP_TEL.MaxLength = 255;
this.columnVERGI_NO.MaxLength = 255;
this.columnVERGI_DAIRESI.MaxLength = 255;
this.columnKAYIT_TARIHI.MaxLength = 255;
this.columnSEMT_MAH.MaxLength = 255;
this.columnCADDE.MaxLength = 255;
this.columnSOKAK.MaxLength = 255;
this.columnSITE.MaxLength = 255;
this.columnAPT_ADI.MaxLength = 255;
this.columnBINA_NO.MaxLength = 255;
this.columnDAIRE_NO.MaxLength = 255;
this.columnIL.MaxLength = 255;
this.columnILCE.MaxLength = 255;
this.columnBUCAK_KOY.MaxLength = 255;
this.columnOTURDUGU_EV.MaxLength = 255;
this.columnFAKIRLIK_DERECE.MaxLength = 255;
this.columnKONUT_TURU.MaxLength = 255;
this.columnODA_SAYISI.MaxLength = 255;
this.columnM2.MaxLength = 255;
this.columnRESIM_ADRESI.MaxLength = 255;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public kisibilgilerRow NewkisibilgilerRow() {
return ((kisibilgilerRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new kisibilgilerRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(kisibilgilerRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.kisibilgilerRowChanged != null)) {
this.kisibilgilerRowChanged(this, new kisibilgilerRowChangeEvent(((kisibilgilerRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.kisibilgilerRowChanging != null)) {
this.kisibilgilerRowChanging(this, new kisibilgilerRowChangeEvent(((kisibilgilerRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.kisibilgilerRowDeleted != null)) {
this.kisibilgilerRowDeleted(this, new kisibilgilerRowChangeEvent(((kisibilgilerRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.kisibilgilerRowDeleting != null)) {
this.kisibilgilerRowDeleting(this, new kisibilgilerRowChangeEvent(((kisibilgilerRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void RemovekisibilgilerRow(kisibilgilerRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
belediyeDataSet ds = new belediyeDataSet();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "kisibilgilerDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class PersonelDataTable : global::System.Data.TypedTableBase<PersonelRow> {
private global::System.Data.DataColumn columnKimlik;
private global::System.Data.DataColumn columnKullaniciAdi;
private global::System.Data.DataColumn columnSifre;
private global::System.Data.DataColumn columnTc;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public PersonelDataTable() {
this.TableName = "Personel";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal PersonelDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected PersonelDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn KimlikColumn {
get {
return this.columnKimlik;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn KullaniciAdiColumn {
get {
return this.columnKullaniciAdi;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn SifreColumn {
get {
return this.columnSifre;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn TcColumn {
get {
return this.columnTc;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public PersonelRow this[int index] {
get {
return ((PersonelRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event PersonelRowChangeEventHandler PersonelRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event PersonelRowChangeEventHandler PersonelRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event PersonelRowChangeEventHandler PersonelRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event PersonelRowChangeEventHandler PersonelRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void AddPersonelRow(PersonelRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public PersonelRow AddPersonelRow(string Kimlik, string KullaniciAdi, string Sifre, string Tc) {
PersonelRow rowPersonelRow = ((PersonelRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
Kimlik,
KullaniciAdi,
Sifre,
Tc};
rowPersonelRow.ItemArray = columnValuesArray;
this.Rows.Add(rowPersonelRow);
return rowPersonelRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public PersonelRow FindByTc(string Tc) {
return ((PersonelRow)(this.Rows.Find(new object[] {
Tc})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataTable Clone() {
PersonelDataTable cln = ((PersonelDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new PersonelDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnKimlik = base.Columns["Kimlik"];
this.columnKullaniciAdi = base.Columns["KullaniciAdi"];
this.columnSifre = base.Columns["Sifre"];
this.columnTc = base.Columns["Tc"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.columnKimlik = new global::System.Data.DataColumn("Kimlik", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnKimlik);
this.columnKullaniciAdi = new global::System.Data.DataColumn("KullaniciAdi", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnKullaniciAdi);
this.columnSifre = new global::System.Data.DataColumn("Sifre", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSifre);
this.columnTc = new global::System.Data.DataColumn("Tc", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnTc);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnTc}, true));
this.columnKimlik.MaxLength = 1;
this.columnKullaniciAdi.MaxLength = 30;
this.columnSifre.MaxLength = 30;
this.columnTc.AllowDBNull = false;
this.columnTc.Unique = true;
this.columnTc.MaxLength = 11;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public PersonelRow NewPersonelRow() {
return ((PersonelRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new PersonelRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(PersonelRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.PersonelRowChanged != null)) {
this.PersonelRowChanged(this, new PersonelRowChangeEvent(((PersonelRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.PersonelRowChanging != null)) {
this.PersonelRowChanging(this, new PersonelRowChangeEvent(((PersonelRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.PersonelRowDeleted != null)) {
this.PersonelRowDeleted(this, new PersonelRowChangeEvent(((PersonelRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.PersonelRowDeleting != null)) {
this.PersonelRowDeleting(this, new PersonelRowChangeEvent(((PersonelRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void RemovePersonelRow(PersonelRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
belediyeDataSet ds = new belediyeDataSet();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "PersonelDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class SikayetlerDataTable : global::System.Data.TypedTableBase<SikayetlerRow> {
private global::System.Data.DataColumn columnTC_NO;
private global::System.Data.DataColumn columnSikayetTarihi;
private global::System.Data.DataColumn columnAdi;
private global::System.Data.DataColumn columnSoyadi;
private global::System.Data.DataColumn columnSikayetNedeni;
private global::System.Data.DataColumn columnAciklama;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public SikayetlerDataTable() {
this.TableName = "Sikayetler";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal SikayetlerDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected SikayetlerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn TC_NOColumn {
get {
return this.columnTC_NO;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn SikayetTarihiColumn {
get {
return this.columnSikayetTarihi;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn AdiColumn {
get {
return this.columnAdi;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn SoyadiColumn {
get {
return this.columnSoyadi;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn SikayetNedeniColumn {
get {
return this.columnSikayetNedeni;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataColumn AciklamaColumn {
get {
return this.columnAciklama;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public SikayetlerRow this[int index] {
get {
return ((SikayetlerRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event SikayetlerRowChangeEventHandler SikayetlerRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event SikayetlerRowChangeEventHandler SikayetlerRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event SikayetlerRowChangeEventHandler SikayetlerRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public event SikayetlerRowChangeEventHandler SikayetlerRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void AddSikayetlerRow(SikayetlerRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public SikayetlerRow AddSikayetlerRow(string TC_NO, string SikayetTarihi, string Adi, string Soyadi, string SikayetNedeni, string Aciklama) {
SikayetlerRow rowSikayetlerRow = ((SikayetlerRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
TC_NO,
SikayetTarihi,
Adi,
Soyadi,
SikayetNedeni,
Aciklama};
rowSikayetlerRow.ItemArray = columnValuesArray;
this.Rows.Add(rowSikayetlerRow);
return rowSikayetlerRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public override global::System.Data.DataTable Clone() {
SikayetlerDataTable cln = ((SikayetlerDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new SikayetlerDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal void InitVars() {
this.columnTC_NO = base.Columns["TC_NO"];
this.columnSikayetTarihi = base.Columns["SikayetTarihi"];
this.columnAdi = base.Columns["Adi"];
this.columnSoyadi = base.Columns["Soyadi"];
this.columnSikayetNedeni = base.Columns["SikayetNedeni"];
this.columnAciklama = base.Columns["Aciklama"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitClass() {
this.columnTC_NO = new global::System.Data.DataColumn("TC_NO", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnTC_NO);
this.columnSikayetTarihi = new global::System.Data.DataColumn("SikayetTarihi", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSikayetTarihi);
this.columnAdi = new global::System.Data.DataColumn("Adi", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnAdi);
this.columnSoyadi = new global::System.Data.DataColumn("Soyadi", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSoyadi);
this.columnSikayetNedeni = new global::System.Data.DataColumn("SikayetNedeni", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSikayetNedeni);
this.columnAciklama = new global::System.Data.DataColumn("Aciklama", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnAciklama);
this.columnTC_NO.MaxLength = 11;
this.columnSikayetTarihi.MaxLength = 255;
this.columnAdi.MaxLength = 30;
this.columnSoyadi.MaxLength = 30;
this.columnSikayetNedeni.MaxLength = 30;
this.columnAciklama.MaxLength = 536870910;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public SikayetlerRow NewSikayetlerRow() {
return ((SikayetlerRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new SikayetlerRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(SikayetlerRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.SikayetlerRowChanged != null)) {
this.SikayetlerRowChanged(this, new SikayetlerRowChangeEvent(((SikayetlerRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.SikayetlerRowChanging != null)) {
this.SikayetlerRowChanging(this, new SikayetlerRowChangeEvent(((SikayetlerRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.SikayetlerRowDeleted != null)) {
this.SikayetlerRowDeleted(this, new SikayetlerRowChangeEvent(((SikayetlerRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.SikayetlerRowDeleting != null)) {
this.SikayetlerRowDeleting(this, new SikayetlerRowChangeEvent(((SikayetlerRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void RemoveSikayetlerRow(SikayetlerRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
belediyeDataSet ds = new belediyeDataSet();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "SikayetlerDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class FaturaRow : global::System.Data.DataRow {
private FaturaDataTable tableFatura;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal FaturaRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableFatura = ((FaturaDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string TC_NO {
get {
try {
return ((string)(this[this.tableFatura.TC_NOColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'TC_NO\' in table \'Fatura\' is DBNull.", e);
}
}
set {
this[this.tableFatura.TC_NOColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string el_aboneno {
get {
try {
return ((string)(this[this.tableFatura.el_abonenoColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'el_aboneno\' in table \'Fatura\' is DBNull.", e);
}
}
set {
this[this.tableFatura.el_abonenoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string elektrik_borcu {
get {
try {
return ((string)(this[this.tableFatura.elektrik_borcuColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'elektrik_borcu\' in table \'Fatura\' is DBNull.", e);
}
}
set {
this[this.tableFatura.elektrik_borcuColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string el_odemetarihi {
get {
try {
return ((string)(this[this.tableFatura.el_odemetarihiColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'el_odemetarihi\' in table \'Fatura\' is DBNull.", e);
}
}
set {
this[this.tableFatura.el_odemetarihiColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string su_aboneno {
get {
try {
return ((string)(this[this.tableFatura.su_abonenoColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'su_aboneno\' in table \'Fatura\' is DBNull.", e);
}
}
set {
this[this.tableFatura.su_abonenoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string su_borcu {
get {
try {
return ((string)(this[this.tableFatura.su_borcuColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'su_borcu\' in table \'Fatura\' is DBNull.", e);
}
}
set {
this[this.tableFatura.su_borcuColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string su_odemetarihi {
get {
try {
return ((string)(this[this.tableFatura.su_odemetarihiColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'su_odemetarihi\' in table \'Fatura\' is DBNull.", e);
}
}
set {
this[this.tableFatura.su_odemetarihiColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsTC_NONull() {
return this.IsNull(this.tableFatura.TC_NOColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetTC_NONull() {
this[this.tableFatura.TC_NOColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Isel_abonenoNull() {
return this.IsNull(this.tableFatura.el_abonenoColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setel_abonenoNull() {
this[this.tableFatura.el_abonenoColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Iselektrik_borcuNull() {
return this.IsNull(this.tableFatura.elektrik_borcuColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setelektrik_borcuNull() {
this[this.tableFatura.elektrik_borcuColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Isel_odemetarihiNull() {
return this.IsNull(this.tableFatura.el_odemetarihiColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setel_odemetarihiNull() {
this[this.tableFatura.el_odemetarihiColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Issu_abonenoNull() {
return this.IsNull(this.tableFatura.su_abonenoColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setsu_abonenoNull() {
this[this.tableFatura.su_abonenoColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Issu_borcuNull() {
return this.IsNull(this.tableFatura.su_borcuColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setsu_borcuNull() {
this[this.tableFatura.su_borcuColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Issu_odemetarihiNull() {
return this.IsNull(this.tableFatura.su_odemetarihiColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setsu_odemetarihiNull() {
this[this.tableFatura.su_odemetarihiColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class FaturaBilgileriRow : global::System.Data.DataRow {
private FaturaBilgileriDataTable tableFaturaBilgileri;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal FaturaBilgileriRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableFaturaBilgileri = ((FaturaBilgileriDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string kw_gunduz {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.kw_gunduzColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'kw_gunduz\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.kw_gunduzColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string kw_puant {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.kw_puantColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'kw_puant\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.kw_puantColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string kw_gece {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.kw_geceColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'kw_gece\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.kw_geceColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string dagitim_birim {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.dagitim_birimColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'dagitim_birim\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.dagitim_birimColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string per_birim {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.per_birimColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'per_birim\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.per_birimColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string psh_birim {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.psh_birimColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'psh_birim\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.psh_birimColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string psh_toplam {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.psh_toplamColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'psh_toplam\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.psh_toplamColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string enerji_toplam {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.enerji_toplamColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'enerji_toplam\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.enerji_toplamColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string trt_toplam {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.trt_toplamColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'trt_toplam\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.trt_toplamColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string elek_toplam {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.elek_toplamColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'elek_toplam\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.elek_toplamColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string elek_kdv {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.elek_kdvColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'elek_kdv\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.elek_kdvColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string bkm_bedel {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.bkm_bedelColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'bkm_bedel\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.bkm_bedelColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string cevre_vergi {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.cevre_vergiColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'cevre_vergi\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.cevre_vergiColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string su_kdv {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.su_kdvColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'su_kdv\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.su_kdvColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string su_birim {
get {
try {
return ((string)(this[this.tableFaturaBilgileri.su_birimColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'su_birim\' in table \'FaturaBilgileri\' is DBNull.", e);
}
}
set {
this[this.tableFaturaBilgileri.su_birimColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Iskw_gunduzNull() {
return this.IsNull(this.tableFaturaBilgileri.kw_gunduzColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setkw_gunduzNull() {
this[this.tableFaturaBilgileri.kw_gunduzColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Iskw_puantNull() {
return this.IsNull(this.tableFaturaBilgileri.kw_puantColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setkw_puantNull() {
this[this.tableFaturaBilgileri.kw_puantColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Iskw_geceNull() {
return this.IsNull(this.tableFaturaBilgileri.kw_geceColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setkw_geceNull() {
this[this.tableFaturaBilgileri.kw_geceColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Isdagitim_birimNull() {
return this.IsNull(this.tableFaturaBilgileri.dagitim_birimColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setdagitim_birimNull() {
this[this.tableFaturaBilgileri.dagitim_birimColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Isper_birimNull() {
return this.IsNull(this.tableFaturaBilgileri.per_birimColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setper_birimNull() {
this[this.tableFaturaBilgileri.per_birimColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Ispsh_birimNull() {
return this.IsNull(this.tableFaturaBilgileri.psh_birimColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setpsh_birimNull() {
this[this.tableFaturaBilgileri.psh_birimColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Ispsh_toplamNull() {
return this.IsNull(this.tableFaturaBilgileri.psh_toplamColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setpsh_toplamNull() {
this[this.tableFaturaBilgileri.psh_toplamColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Isenerji_toplamNull() {
return this.IsNull(this.tableFaturaBilgileri.enerji_toplamColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setenerji_toplamNull() {
this[this.tableFaturaBilgileri.enerji_toplamColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Istrt_toplamNull() {
return this.IsNull(this.tableFaturaBilgileri.trt_toplamColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Settrt_toplamNull() {
this[this.tableFaturaBilgileri.trt_toplamColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Iselek_toplamNull() {
return this.IsNull(this.tableFaturaBilgileri.elek_toplamColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setelek_toplamNull() {
this[this.tableFaturaBilgileri.elek_toplamColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Iselek_kdvNull() {
return this.IsNull(this.tableFaturaBilgileri.elek_kdvColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setelek_kdvNull() {
this[this.tableFaturaBilgileri.elek_kdvColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Isbkm_bedelNull() {
return this.IsNull(this.tableFaturaBilgileri.bkm_bedelColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setbkm_bedelNull() {
this[this.tableFaturaBilgileri.bkm_bedelColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Iscevre_vergiNull() {
return this.IsNull(this.tableFaturaBilgileri.cevre_vergiColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setcevre_vergiNull() {
this[this.tableFaturaBilgileri.cevre_vergiColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Issu_kdvNull() {
return this.IsNull(this.tableFaturaBilgileri.su_kdvColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setsu_kdvNull() {
this[this.tableFaturaBilgileri.su_kdvColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool Issu_birimNull() {
return this.IsNull(this.tableFaturaBilgileri.su_birimColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void Setsu_birimNull() {
this[this.tableFaturaBilgileri.su_birimColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class kisibilgilerRow : global::System.Data.DataRow {
private kisibilgilerDataTable tablekisibilgiler;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal kisibilgilerRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tablekisibilgiler = ((kisibilgilerDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public int ID {
get {
try {
return ((int)(this[this.tablekisibilgiler.IDColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'ID\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.IDColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string TC_NO {
get {
return ((string)(this[this.tablekisibilgiler.TC_NOColumn]));
}
set {
this[this.tablekisibilgiler.TC_NOColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string SOYADI {
get {
try {
return ((string)(this[this.tablekisibilgiler.SOYADIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'SOYADI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.SOYADIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string ADI {
get {
try {
return ((string)(this[this.tablekisibilgiler.ADIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'ADI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.ADIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string BABA_ADI {
get {
try {
return ((string)(this[this.tablekisibilgiler.BABA_ADIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'BABA_ADI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.BABA_ADIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string ANA_ADI {
get {
try {
return ((string)(this[this.tablekisibilgiler.ANA_ADIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'ANA_ADI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.ANA_ADIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string DOGUM_YERI {
get {
try {
return ((string)(this[this.tablekisibilgiler.DOGUM_YERIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'DOGUM_YERI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.DOGUM_YERIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string DOGUM_TARIHI {
get {
try {
return ((string)(this[this.tablekisibilgiler.DOGUM_TARIHIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'DOGUM_TARIHI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.DOGUM_TARIHIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string MEDENI_HALI {
get {
try {
return ((string)(this[this.tablekisibilgiler.MEDENI_HALIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'MEDENI_HALI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.MEDENI_HALIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string DINI {
get {
try {
return ((string)(this[this.tablekisibilgiler.DINIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'DINI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.DINIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string KAN_GRUBU {
get {
try {
return ((string)(this[this.tablekisibilgiler.KAN_GRUBUColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'KAN_GRUBU\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.KAN_GRUBUColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string ILI {
get {
try {
return ((string)(this[this.tablekisibilgiler.ILIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'ILI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.ILIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string ILCESI {
get {
try {
return ((string)(this[this.tablekisibilgiler.ILCESIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'ILCESI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.ILCESIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string MAHALLE_KOY {
get {
try {
return ((string)(this[this.tablekisibilgiler.MAHALLE_KOYColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'MAHALLE_KOY\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.MAHALLE_KOYColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string CILT_NO {
get {
try {
return ((string)(this[this.tablekisibilgiler.CILT_NOColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'CILT_NO\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.CILT_NOColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string AILESIRA_NO {
get {
try {
return ((string)(this[this.tablekisibilgiler.AILESIRA_NOColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'AILESIRA_NO\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.AILESIRA_NOColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string SIRA_NO {
get {
try {
return ((string)(this[this.tablekisibilgiler.SIRA_NOColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'SIRA_NO\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.SIRA_NOColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string VERILDIGI_YER {
get {
try {
return ((string)(this[this.tablekisibilgiler.VERILDIGI_YERColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'VERILDIGI_YER\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.VERILDIGI_YERColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string VERILIS_NEDENI {
get {
try {
return ((string)(this[this.tablekisibilgiler.VERILIS_NEDENIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'VERILIS_NEDENI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.VERILIS_NEDENIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string KAYIT_NO {
get {
try {
return ((string)(this[this.tablekisibilgiler.KAYIT_NOColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'KAYIT_NO\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.KAYIT_NOColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string VERILIS_TARIHI {
get {
try {
return ((string)(this[this.tablekisibilgiler.VERILIS_TARIHIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'VERILIS_TARIHI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.VERILIS_TARIHIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string ONCEKI_SOYADI {
get {
try {
return ((string)(this[this.tablekisibilgiler.ONCEKI_SOYADIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'ONCEKI_SOYADI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.ONCEKI_SOYADIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string MESLEGI {
get {
try {
return ((string)(this[this.tablekisibilgiler.MESLEGIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'MESLEGI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.MESLEGIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string OGRENIM_DURUMU {
get {
try {
return ((string)(this[this.tablekisibilgiler.OGRENIM_DURUMUColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'OGRENIM_DURUMU\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.OGRENIM_DURUMUColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string ASKKAYIT_NO {
get {
try {
return ((string)(this[this.tablekisibilgiler.ASKKAYIT_NOColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'ASKKAYIT_NO\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.ASKKAYIT_NOColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string CEP_TEL {
get {
try {
return ((string)(this[this.tablekisibilgiler.CEP_TELColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'CEP_TEL\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.CEP_TELColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string VERGI_NO {
get {
try {
return ((string)(this[this.tablekisibilgiler.VERGI_NOColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'VERGI_NO\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.VERGI_NOColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string VERGI_DAIRESI {
get {
try {
return ((string)(this[this.tablekisibilgiler.VERGI_DAIRESIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'VERGI_DAIRESI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.VERGI_DAIRESIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string KAYIT_TARIHI {
get {
try {
return ((string)(this[this.tablekisibilgiler.KAYIT_TARIHIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'KAYIT_TARIHI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.KAYIT_TARIHIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string SEMT_MAH {
get {
try {
return ((string)(this[this.tablekisibilgiler.SEMT_MAHColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'SEMT_MAH\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.SEMT_MAHColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string CADDE {
get {
try {
return ((string)(this[this.tablekisibilgiler.CADDEColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'CADDE\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.CADDEColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string SOKAK {
get {
try {
return ((string)(this[this.tablekisibilgiler.SOKAKColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'SOKAK\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.SOKAKColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string SITE {
get {
try {
return ((string)(this[this.tablekisibilgiler.SITEColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'SITE\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.SITEColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string APT_ADI {
get {
try {
return ((string)(this[this.tablekisibilgiler.APT_ADIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'APT_ADI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.APT_ADIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string BINA_NO {
get {
try {
return ((string)(this[this.tablekisibilgiler.BINA_NOColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'BINA_NO\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.BINA_NOColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string DAIRE_NO {
get {
try {
return ((string)(this[this.tablekisibilgiler.DAIRE_NOColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'DAIRE_NO\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.DAIRE_NOColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string IL {
get {
try {
return ((string)(this[this.tablekisibilgiler.ILColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'IL\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.ILColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string ILCE {
get {
try {
return ((string)(this[this.tablekisibilgiler.ILCEColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'ILCE\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.ILCEColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string BUCAK_KOY {
get {
try {
return ((string)(this[this.tablekisibilgiler.BUCAK_KOYColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'BUCAK_KOY\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.BUCAK_KOYColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string OTURDUGU_EV {
get {
try {
return ((string)(this[this.tablekisibilgiler.OTURDUGU_EVColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'OTURDUGU_EV\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.OTURDUGU_EVColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string FAKIRLIK_DERECE {
get {
try {
return ((string)(this[this.tablekisibilgiler.FAKIRLIK_DERECEColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'FAKIRLIK_DERECE\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.FAKIRLIK_DERECEColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string KONUT_TURU {
get {
try {
return ((string)(this[this.tablekisibilgiler.KONUT_TURUColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'KONUT_TURU\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.KONUT_TURUColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string ODA_SAYISI {
get {
try {
return ((string)(this[this.tablekisibilgiler.ODA_SAYISIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'ODA_SAYISI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.ODA_SAYISIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string M2 {
get {
try {
return ((string)(this[this.tablekisibilgiler.M2Column]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'M2\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.M2Column] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string RESIM_ADRESI {
get {
try {
return ((string)(this[this.tablekisibilgiler.RESIM_ADRESIColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'RESIM_ADRESI\' in table \'kisibilgiler\' is DBNull.", e);
}
}
set {
this[this.tablekisibilgiler.RESIM_ADRESIColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsIDNull() {
return this.IsNull(this.tablekisibilgiler.IDColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetIDNull() {
this[this.tablekisibilgiler.IDColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsSOYADINull() {
return this.IsNull(this.tablekisibilgiler.SOYADIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetSOYADINull() {
this[this.tablekisibilgiler.SOYADIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsADINull() {
return this.IsNull(this.tablekisibilgiler.ADIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetADINull() {
this[this.tablekisibilgiler.ADIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsBABA_ADINull() {
return this.IsNull(this.tablekisibilgiler.BABA_ADIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetBABA_ADINull() {
this[this.tablekisibilgiler.BABA_ADIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsANA_ADINull() {
return this.IsNull(this.tablekisibilgiler.ANA_ADIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetANA_ADINull() {
this[this.tablekisibilgiler.ANA_ADIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsDOGUM_YERINull() {
return this.IsNull(this.tablekisibilgiler.DOGUM_YERIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetDOGUM_YERINull() {
this[this.tablekisibilgiler.DOGUM_YERIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsDOGUM_TARIHINull() {
return this.IsNull(this.tablekisibilgiler.DOGUM_TARIHIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetDOGUM_TARIHINull() {
this[this.tablekisibilgiler.DOGUM_TARIHIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsMEDENI_HALINull() {
return this.IsNull(this.tablekisibilgiler.MEDENI_HALIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetMEDENI_HALINull() {
this[this.tablekisibilgiler.MEDENI_HALIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsDININull() {
return this.IsNull(this.tablekisibilgiler.DINIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetDININull() {
this[this.tablekisibilgiler.DINIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsKAN_GRUBUNull() {
return this.IsNull(this.tablekisibilgiler.KAN_GRUBUColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetKAN_GRUBUNull() {
this[this.tablekisibilgiler.KAN_GRUBUColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsILINull() {
return this.IsNull(this.tablekisibilgiler.ILIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetILINull() {
this[this.tablekisibilgiler.ILIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsILCESINull() {
return this.IsNull(this.tablekisibilgiler.ILCESIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetILCESINull() {
this[this.tablekisibilgiler.ILCESIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsMAHALLE_KOYNull() {
return this.IsNull(this.tablekisibilgiler.MAHALLE_KOYColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetMAHALLE_KOYNull() {
this[this.tablekisibilgiler.MAHALLE_KOYColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsCILT_NONull() {
return this.IsNull(this.tablekisibilgiler.CILT_NOColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetCILT_NONull() {
this[this.tablekisibilgiler.CILT_NOColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsAILESIRA_NONull() {
return this.IsNull(this.tablekisibilgiler.AILESIRA_NOColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetAILESIRA_NONull() {
this[this.tablekisibilgiler.AILESIRA_NOColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsSIRA_NONull() {
return this.IsNull(this.tablekisibilgiler.SIRA_NOColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetSIRA_NONull() {
this[this.tablekisibilgiler.SIRA_NOColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsVERILDIGI_YERNull() {
return this.IsNull(this.tablekisibilgiler.VERILDIGI_YERColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetVERILDIGI_YERNull() {
this[this.tablekisibilgiler.VERILDIGI_YERColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsVERILIS_NEDENINull() {
return this.IsNull(this.tablekisibilgiler.VERILIS_NEDENIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetVERILIS_NEDENINull() {
this[this.tablekisibilgiler.VERILIS_NEDENIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsKAYIT_NONull() {
return this.IsNull(this.tablekisibilgiler.KAYIT_NOColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetKAYIT_NONull() {
this[this.tablekisibilgiler.KAYIT_NOColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsVERILIS_TARIHINull() {
return this.IsNull(this.tablekisibilgiler.VERILIS_TARIHIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetVERILIS_TARIHINull() {
this[this.tablekisibilgiler.VERILIS_TARIHIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsONCEKI_SOYADINull() {
return this.IsNull(this.tablekisibilgiler.ONCEKI_SOYADIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetONCEKI_SOYADINull() {
this[this.tablekisibilgiler.ONCEKI_SOYADIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsMESLEGINull() {
return this.IsNull(this.tablekisibilgiler.MESLEGIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetMESLEGINull() {
this[this.tablekisibilgiler.MESLEGIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsOGRENIM_DURUMUNull() {
return this.IsNull(this.tablekisibilgiler.OGRENIM_DURUMUColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetOGRENIM_DURUMUNull() {
this[this.tablekisibilgiler.OGRENIM_DURUMUColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsASKKAYIT_NONull() {
return this.IsNull(this.tablekisibilgiler.ASKKAYIT_NOColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetASKKAYIT_NONull() {
this[this.tablekisibilgiler.ASKKAYIT_NOColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsCEP_TELNull() {
return this.IsNull(this.tablekisibilgiler.CEP_TELColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetCEP_TELNull() {
this[this.tablekisibilgiler.CEP_TELColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsVERGI_NONull() {
return this.IsNull(this.tablekisibilgiler.VERGI_NOColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetVERGI_NONull() {
this[this.tablekisibilgiler.VERGI_NOColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsVERGI_DAIRESINull() {
return this.IsNull(this.tablekisibilgiler.VERGI_DAIRESIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetVERGI_DAIRESINull() {
this[this.tablekisibilgiler.VERGI_DAIRESIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsKAYIT_TARIHINull() {
return this.IsNull(this.tablekisibilgiler.KAYIT_TARIHIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetKAYIT_TARIHINull() {
this[this.tablekisibilgiler.KAYIT_TARIHIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsSEMT_MAHNull() {
return this.IsNull(this.tablekisibilgiler.SEMT_MAHColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetSEMT_MAHNull() {
this[this.tablekisibilgiler.SEMT_MAHColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsCADDENull() {
return this.IsNull(this.tablekisibilgiler.CADDEColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetCADDENull() {
this[this.tablekisibilgiler.CADDEColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsSOKAKNull() {
return this.IsNull(this.tablekisibilgiler.SOKAKColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetSOKAKNull() {
this[this.tablekisibilgiler.SOKAKColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsSITENull() {
return this.IsNull(this.tablekisibilgiler.SITEColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetSITENull() {
this[this.tablekisibilgiler.SITEColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsAPT_ADINull() {
return this.IsNull(this.tablekisibilgiler.APT_ADIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetAPT_ADINull() {
this[this.tablekisibilgiler.APT_ADIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsBINA_NONull() {
return this.IsNull(this.tablekisibilgiler.BINA_NOColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetBINA_NONull() {
this[this.tablekisibilgiler.BINA_NOColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsDAIRE_NONull() {
return this.IsNull(this.tablekisibilgiler.DAIRE_NOColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetDAIRE_NONull() {
this[this.tablekisibilgiler.DAIRE_NOColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsILNull() {
return this.IsNull(this.tablekisibilgiler.ILColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetILNull() {
this[this.tablekisibilgiler.ILColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsILCENull() {
return this.IsNull(this.tablekisibilgiler.ILCEColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetILCENull() {
this[this.tablekisibilgiler.ILCEColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsBUCAK_KOYNull() {
return this.IsNull(this.tablekisibilgiler.BUCAK_KOYColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetBUCAK_KOYNull() {
this[this.tablekisibilgiler.BUCAK_KOYColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsOTURDUGU_EVNull() {
return this.IsNull(this.tablekisibilgiler.OTURDUGU_EVColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetOTURDUGU_EVNull() {
this[this.tablekisibilgiler.OTURDUGU_EVColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsFAKIRLIK_DERECENull() {
return this.IsNull(this.tablekisibilgiler.FAKIRLIK_DERECEColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetFAKIRLIK_DERECENull() {
this[this.tablekisibilgiler.FAKIRLIK_DERECEColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsKONUT_TURUNull() {
return this.IsNull(this.tablekisibilgiler.KONUT_TURUColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetKONUT_TURUNull() {
this[this.tablekisibilgiler.KONUT_TURUColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsODA_SAYISINull() {
return this.IsNull(this.tablekisibilgiler.ODA_SAYISIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetODA_SAYISINull() {
this[this.tablekisibilgiler.ODA_SAYISIColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsM2Null() {
return this.IsNull(this.tablekisibilgiler.M2Column);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetM2Null() {
this[this.tablekisibilgiler.M2Column] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsRESIM_ADRESINull() {
return this.IsNull(this.tablekisibilgiler.RESIM_ADRESIColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetRESIM_ADRESINull() {
this[this.tablekisibilgiler.RESIM_ADRESIColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class PersonelRow : global::System.Data.DataRow {
private PersonelDataTable tablePersonel;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal PersonelRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tablePersonel = ((PersonelDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string Kimlik {
get {
try {
return ((string)(this[this.tablePersonel.KimlikColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'Kimlik\' in table \'Personel\' is DBNull.", e);
}
}
set {
this[this.tablePersonel.KimlikColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string KullaniciAdi {
get {
try {
return ((string)(this[this.tablePersonel.KullaniciAdiColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'KullaniciAdi\' in table \'Personel\' is DBNull.", e);
}
}
set {
this[this.tablePersonel.KullaniciAdiColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string Sifre {
get {
try {
return ((string)(this[this.tablePersonel.SifreColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'Sifre\' in table \'Personel\' is DBNull.", e);
}
}
set {
this[this.tablePersonel.SifreColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string Tc {
get {
return ((string)(this[this.tablePersonel.TcColumn]));
}
set {
this[this.tablePersonel.TcColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsKimlikNull() {
return this.IsNull(this.tablePersonel.KimlikColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetKimlikNull() {
this[this.tablePersonel.KimlikColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsKullaniciAdiNull() {
return this.IsNull(this.tablePersonel.KullaniciAdiColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetKullaniciAdiNull() {
this[this.tablePersonel.KullaniciAdiColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsSifreNull() {
return this.IsNull(this.tablePersonel.SifreColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetSifreNull() {
this[this.tablePersonel.SifreColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class SikayetlerRow : global::System.Data.DataRow {
private SikayetlerDataTable tableSikayetler;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal SikayetlerRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableSikayetler = ((SikayetlerDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string TC_NO {
get {
try {
return ((string)(this[this.tableSikayetler.TC_NOColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'TC_NO\' in table \'Sikayetler\' is DBNull.", e);
}
}
set {
this[this.tableSikayetler.TC_NOColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string SikayetTarihi {
get {
try {
return ((string)(this[this.tableSikayetler.SikayetTarihiColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'SikayetTarihi\' in table \'Sikayetler\' is DBNull.", e);
}
}
set {
this[this.tableSikayetler.SikayetTarihiColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string Adi {
get {
try {
return ((string)(this[this.tableSikayetler.AdiColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'Adi\' in table \'Sikayetler\' is DBNull.", e);
}
}
set {
this[this.tableSikayetler.AdiColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string Soyadi {
get {
try {
return ((string)(this[this.tableSikayetler.SoyadiColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'Soyadi\' in table \'Sikayetler\' is DBNull.", e);
}
}
set {
this[this.tableSikayetler.SoyadiColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string SikayetNedeni {
get {
try {
return ((string)(this[this.tableSikayetler.SikayetNedeniColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'SikayetNedeni\' in table \'Sikayetler\' is DBNull.", e);
}
}
set {
this[this.tableSikayetler.SikayetNedeniColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public string Aciklama {
get {
try {
return ((string)(this[this.tableSikayetler.AciklamaColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'Aciklama\' in table \'Sikayetler\' is DBNull.", e);
}
}
set {
this[this.tableSikayetler.AciklamaColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsTC_NONull() {
return this.IsNull(this.tableSikayetler.TC_NOColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetTC_NONull() {
this[this.tableSikayetler.TC_NOColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsSikayetTarihiNull() {
return this.IsNull(this.tableSikayetler.SikayetTarihiColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetSikayetTarihiNull() {
this[this.tableSikayetler.SikayetTarihiColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsAdiNull() {
return this.IsNull(this.tableSikayetler.AdiColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetAdiNull() {
this[this.tableSikayetler.AdiColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsSoyadiNull() {
return this.IsNull(this.tableSikayetler.SoyadiColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetSoyadiNull() {
this[this.tableSikayetler.SoyadiColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsSikayetNedeniNull() {
return this.IsNull(this.tableSikayetler.SikayetNedeniColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetSikayetNedeniNull() {
this[this.tableSikayetler.SikayetNedeniColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool IsAciklamaNull() {
return this.IsNull(this.tableSikayetler.AciklamaColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public void SetAciklamaNull() {
this[this.tableSikayetler.AciklamaColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public class FaturaRowChangeEvent : global::System.EventArgs {
private FaturaRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaRowChangeEvent(FaturaRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public class FaturaBilgileriRowChangeEvent : global::System.EventArgs {
private FaturaBilgileriRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaBilgileriRowChangeEvent(FaturaBilgileriRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaBilgileriRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public class kisibilgilerRowChangeEvent : global::System.EventArgs {
private kisibilgilerRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public kisibilgilerRowChangeEvent(kisibilgilerRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public kisibilgilerRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public class PersonelRowChangeEvent : global::System.EventArgs {
private PersonelRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public PersonelRowChangeEvent(PersonelRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public PersonelRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public class SikayetlerRowChangeEvent : global::System.EventArgs {
private SikayetlerRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public SikayetlerRowChangeEvent(SikayetlerRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public SikayetlerRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace Belediye_Otomasyonu.belediyeDataSetTableAdapters {
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class FaturaTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.OleDb.OleDbDataAdapter _adapter;
private global::System.Data.OleDb.OleDbConnection _connection;
private global::System.Data.OleDb.OleDbTransaction _transaction;
private global::System.Data.OleDb.OleDbCommand[] _commandCollection;
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected internal global::System.Data.OleDb.OleDbDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.OleDb.OleDbConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((global::System.Data.OleDb.OleDbCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.OleDb.OleDbTransaction Transaction {
get {
return this._transaction;
}
set {
this._transaction = value;
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
this.CommandCollection[i].Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.DeleteCommand != null))) {
this.Adapter.DeleteCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.InsertCommand != null))) {
this.Adapter.InsertCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.UpdateCommand != null))) {
this.Adapter.UpdateCommand.Transaction = this._transaction;
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected global::System.Data.OleDb.OleDbCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitAdapter() {
this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "Fatura";
tableMapping.ColumnMappings.Add("TC_NO", "TC_NO");
tableMapping.ColumnMappings.Add("el_aboneno", "el_aboneno");
tableMapping.ColumnMappings.Add("elektrik_borcu", "elektrik_borcu");
tableMapping.ColumnMappings.Add("el_odemetarihi", "el_odemetarihi");
tableMapping.ColumnMappings.Add("su_aboneno", "su_aboneno");
tableMapping.ColumnMappings.Add("su_borcu", "su_borcu");
tableMapping.ColumnMappings.Add("su_odemetarihi", "su_odemetarihi");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = "INSERT INTO `Fatura` (`TC_NO`, `el_aboneno`, `elektrik_borcu`, `el_odemetarihi`, " +
"`su_aboneno`, `su_borcu`, `su_odemetarihi`) VALUES (?, ?, ?, ?, ?, ?, ?)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("TC_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TC_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("el_aboneno", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "el_aboneno", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("elektrik_borcu", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "elektrik_borcu", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("el_odemetarihi", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "el_odemetarihi", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("su_aboneno", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "su_aboneno", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("su_borcu", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "su_borcu", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("su_odemetarihi", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "su_odemetarihi", global::System.Data.DataRowVersion.Current, false, null));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.OleDb.OleDbConnection();
this._connection.ConnectionString = global::Belediye_Otomasyonu.Properties.Settings.Default.belediyeConnectionString1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.OleDb.OleDbCommand[1];
this._commandCollection[0] = new global::System.Data.OleDb.OleDbCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT TC_NO, el_aboneno, elektrik_borcu, el_odemetarihi, su_aboneno, su_borcu, s" +
"u_odemetarihi FROM Fatura";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(belediyeDataSet.FaturaDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual belediyeDataSet.FaturaDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
belediyeDataSet.FaturaDataTable dataTable = new belediyeDataSet.FaturaDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(belediyeDataSet.FaturaDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(belediyeDataSet dataSet) {
return this.Adapter.Update(dataSet, "Fatura");
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(global::System.Data.DataRow dataRow) {
return this.Adapter.Update(new global::System.Data.DataRow[] {
dataRow});
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(global::System.Data.DataRow[] dataRows) {
return this.Adapter.Update(dataRows);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(string TC_NO, string el_aboneno, string elektrik_borcu, string el_odemetarihi, string su_aboneno, string su_borcu, string su_odemetarihi) {
if ((TC_NO == null)) {
throw new global::System.ArgumentNullException("TC_NO");
}
else {
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TC_NO));
}
if ((el_aboneno == null)) {
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(el_aboneno));
}
if ((elektrik_borcu == null)) {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(elektrik_borcu));
}
if ((el_odemetarihi == null)) {
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(el_odemetarihi));
}
if ((su_aboneno == null)) {
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(su_aboneno));
}
if ((su_borcu == null)) {
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(su_borcu));
}
if ((su_odemetarihi == null)) {
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(su_odemetarihi));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.InsertCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.InsertCommand.Connection.Close();
}
}
}
}
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class FaturaBilgileriTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.OleDb.OleDbDataAdapter _adapter;
private global::System.Data.OleDb.OleDbConnection _connection;
private global::System.Data.OleDb.OleDbTransaction _transaction;
private global::System.Data.OleDb.OleDbCommand[] _commandCollection;
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public FaturaBilgileriTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected internal global::System.Data.OleDb.OleDbDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.OleDb.OleDbConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((global::System.Data.OleDb.OleDbCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.OleDb.OleDbTransaction Transaction {
get {
return this._transaction;
}
set {
this._transaction = value;
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
this.CommandCollection[i].Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.DeleteCommand != null))) {
this.Adapter.DeleteCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.InsertCommand != null))) {
this.Adapter.InsertCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.UpdateCommand != null))) {
this.Adapter.UpdateCommand.Transaction = this._transaction;
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected global::System.Data.OleDb.OleDbCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitAdapter() {
this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "FaturaBilgileri";
tableMapping.ColumnMappings.Add("kw_gunduz", "kw_gunduz");
tableMapping.ColumnMappings.Add("kw_puant", "kw_puant");
tableMapping.ColumnMappings.Add("kw_gece", "kw_gece");
tableMapping.ColumnMappings.Add("dagitim_birim", "dagitim_birim");
tableMapping.ColumnMappings.Add("per_birim", "per_birim");
tableMapping.ColumnMappings.Add("psh_birim", "psh_birim");
tableMapping.ColumnMappings.Add("psh_toplam", "psh_toplam");
tableMapping.ColumnMappings.Add("enerji_toplam", "enerji_toplam");
tableMapping.ColumnMappings.Add("trt_toplam", "trt_toplam");
tableMapping.ColumnMappings.Add("elek_toplam", "elek_toplam");
tableMapping.ColumnMappings.Add("elek_kdv", "elek_kdv");
tableMapping.ColumnMappings.Add("bkm_bedel", "bkm_bedel");
tableMapping.ColumnMappings.Add("cevre_vergi", "cevre_vergi");
tableMapping.ColumnMappings.Add("su_kdv", "su_kdv");
tableMapping.ColumnMappings.Add("su_birim", "su_birim");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = @"INSERT INTO `FaturaBilgileri` (`kw_gunduz`, `kw_puant`, `kw_gece`, `dagitim_birim`, `per_birim`, `psh_birim`, `psh_toplam`, `enerji_toplam`, `trt_toplam`, `elek_toplam`, `elek_kdv`, `bkm_bedel`, `cevre_vergi`, `su_kdv`, `su_birim`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("kw_gunduz", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "kw_gunduz", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("kw_puant", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "kw_puant", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("kw_gece", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "kw_gece", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("dagitim_birim", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "dagitim_birim", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("per_birim", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "per_birim", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("psh_birim", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "psh_birim", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("psh_toplam", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "psh_toplam", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("enerji_toplam", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "enerji_toplam", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("trt_toplam", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "trt_toplam", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("elek_toplam", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "elek_toplam", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("elek_kdv", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "elek_kdv", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("bkm_bedel", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "bkm_bedel", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("cevre_vergi", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "cevre_vergi", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("su_kdv", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "su_kdv", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("su_birim", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "su_birim", global::System.Data.DataRowVersion.Current, false, null));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.OleDb.OleDbConnection();
this._connection.ConnectionString = global::Belediye_Otomasyonu.Properties.Settings.Default.belediyeConnectionString1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.OleDb.OleDbCommand[1];
this._commandCollection[0] = new global::System.Data.OleDb.OleDbCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT kw_gunduz, kw_puant, kw_gece, dagitim_birim, per_birim, psh_birim, psh_top" +
"lam, enerji_toplam, trt_toplam, elek_toplam, elek_kdv, bkm_bedel, cevre_vergi, s" +
"u_kdv, su_birim FROM FaturaBilgileri";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(belediyeDataSet.FaturaBilgileriDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual belediyeDataSet.FaturaBilgileriDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
belediyeDataSet.FaturaBilgileriDataTable dataTable = new belediyeDataSet.FaturaBilgileriDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(belediyeDataSet.FaturaBilgileriDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(belediyeDataSet dataSet) {
return this.Adapter.Update(dataSet, "FaturaBilgileri");
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(global::System.Data.DataRow dataRow) {
return this.Adapter.Update(new global::System.Data.DataRow[] {
dataRow});
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(global::System.Data.DataRow[] dataRows) {
return this.Adapter.Update(dataRows);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(string kw_gunduz, string kw_puant, string kw_gece, string dagitim_birim, string per_birim, string psh_birim, string psh_toplam, string enerji_toplam, string trt_toplam, string elek_toplam, string elek_kdv, string bkm_bedel, string cevre_vergi, string su_kdv, string su_birim) {
if ((kw_gunduz == null)) {
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(kw_gunduz));
}
if ((kw_puant == null)) {
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(kw_puant));
}
if ((kw_gece == null)) {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(kw_gece));
}
if ((dagitim_birim == null)) {
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(dagitim_birim));
}
if ((per_birim == null)) {
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(per_birim));
}
if ((psh_birim == null)) {
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(psh_birim));
}
if ((psh_toplam == null)) {
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(psh_toplam));
}
if ((enerji_toplam == null)) {
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(enerji_toplam));
}
if ((trt_toplam == null)) {
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[8].Value = ((string)(trt_toplam));
}
if ((elek_toplam == null)) {
this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[9].Value = ((string)(elek_toplam));
}
if ((elek_kdv == null)) {
this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[10].Value = ((string)(elek_kdv));
}
if ((bkm_bedel == null)) {
this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[11].Value = ((string)(bkm_bedel));
}
if ((cevre_vergi == null)) {
this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[12].Value = ((string)(cevre_vergi));
}
if ((su_kdv == null)) {
this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[13].Value = ((string)(su_kdv));
}
if ((su_birim == null)) {
this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[14].Value = ((string)(su_birim));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.InsertCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.InsertCommand.Connection.Close();
}
}
}
}
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class kisibilgilerTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.OleDb.OleDbDataAdapter _adapter;
private global::System.Data.OleDb.OleDbConnection _connection;
private global::System.Data.OleDb.OleDbTransaction _transaction;
private global::System.Data.OleDb.OleDbCommand[] _commandCollection;
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public kisibilgilerTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected internal global::System.Data.OleDb.OleDbDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.OleDb.OleDbConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((global::System.Data.OleDb.OleDbCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.OleDb.OleDbTransaction Transaction {
get {
return this._transaction;
}
set {
this._transaction = value;
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
this.CommandCollection[i].Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.DeleteCommand != null))) {
this.Adapter.DeleteCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.InsertCommand != null))) {
this.Adapter.InsertCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.UpdateCommand != null))) {
this.Adapter.UpdateCommand.Transaction = this._transaction;
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected global::System.Data.OleDb.OleDbCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitAdapter() {
this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "kisibilgiler";
tableMapping.ColumnMappings.Add("ID", "ID");
tableMapping.ColumnMappings.Add("TC_NO", "TC_NO");
tableMapping.ColumnMappings.Add("SOYADI", "SOYADI");
tableMapping.ColumnMappings.Add("ADI", "ADI");
tableMapping.ColumnMappings.Add("BABA_ADI", "BABA_ADI");
tableMapping.ColumnMappings.Add("ANA_ADI", "ANA_ADI");
tableMapping.ColumnMappings.Add("DOGUM_YERI", "DOGUM_YERI");
tableMapping.ColumnMappings.Add("DOGUM_TARIHI", "DOGUM_TARIHI");
tableMapping.ColumnMappings.Add("MEDENI_HALI", "MEDENI_HALI");
tableMapping.ColumnMappings.Add("DINI", "DINI");
tableMapping.ColumnMappings.Add("KAN_GRUBU", "KAN_GRUBU");
tableMapping.ColumnMappings.Add("ILI", "ILI");
tableMapping.ColumnMappings.Add("ILCESI", "ILCESI");
tableMapping.ColumnMappings.Add("MAHALLE_KOY", "MAHALLE_KOY");
tableMapping.ColumnMappings.Add("CILT_NO", "CILT_NO");
tableMapping.ColumnMappings.Add("AILESIRA_NO", "AILESIRA_NO");
tableMapping.ColumnMappings.Add("SIRA_NO", "SIRA_NO");
tableMapping.ColumnMappings.Add("VERILDIGI_YER", "VERILDIGI_YER");
tableMapping.ColumnMappings.Add("VERILIS_NEDENI", "VERILIS_NEDENI");
tableMapping.ColumnMappings.Add("KAYIT_NO", "KAYIT_NO");
tableMapping.ColumnMappings.Add("VERILIS_TARIHI", "VERILIS_TARIHI");
tableMapping.ColumnMappings.Add("ONCEKI_SOYADI", "ONCEKI_SOYADI");
tableMapping.ColumnMappings.Add("MESLEGI", "MESLEGI");
tableMapping.ColumnMappings.Add("OGRENIM_DURUMU", "OGRENIM_DURUMU");
tableMapping.ColumnMappings.Add("ASKKAYIT_NO", "ASKKAYIT_NO");
tableMapping.ColumnMappings.Add("CEP_TEL", "CEP_TEL");
tableMapping.ColumnMappings.Add("VERGI_NO", "VERGI_NO");
tableMapping.ColumnMappings.Add("VERGI_DAIRESI", "VERGI_DAIRESI");
tableMapping.ColumnMappings.Add("KAYIT_TARIHI", "KAYIT_TARIHI");
tableMapping.ColumnMappings.Add("SEMT_MAH", "SEMT_MAH");
tableMapping.ColumnMappings.Add("CADDE", "CADDE");
tableMapping.ColumnMappings.Add("SOKAK", "SOKAK");
tableMapping.ColumnMappings.Add("SITE", "SITE");
tableMapping.ColumnMappings.Add("APT_ADI", "APT_ADI");
tableMapping.ColumnMappings.Add("BINA_NO", "BINA_NO");
tableMapping.ColumnMappings.Add("DAIRE_NO", "DAIRE_NO");
tableMapping.ColumnMappings.Add("IL", "IL");
tableMapping.ColumnMappings.Add("ILCE", "ILCE");
tableMapping.ColumnMappings.Add("BUCAK_KOY", "BUCAK_KOY");
tableMapping.ColumnMappings.Add("OTURDUGU_EV", "OTURDUGU_EV");
tableMapping.ColumnMappings.Add("FAKIRLIK_DERECE", "FAKIRLIK_DERECE");
tableMapping.ColumnMappings.Add("KONUT_TURU", "KONUT_TURU");
tableMapping.ColumnMappings.Add("ODA_SAYISI", "ODA_SAYISI");
tableMapping.ColumnMappings.Add("M2", "M2");
tableMapping.ColumnMappings.Add("RESIM_ADRESI", "RESIM_ADRESI");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
this._adapter.DeleteCommand.CommandText = "DELETE FROM `kisibilgiler` WHERE (((? = 1 AND `ID` IS NULL) OR (`ID` = ?)) AND (`" +
"TC_NO` = ?) AND ((? = 1 AND `SOYADI` IS NULL) OR (`SOYADI` = ?)) AND ((? = 1 AND" +
" `ADI` IS NULL) OR (`ADI` = ?)) AND ((? = 1 AND `BABA_ADI` IS NULL) OR (`BABA_AD" +
"I` = ?)) AND ((? = 1 AND `ANA_ADI` IS NULL) OR (`ANA_ADI` = ?)) AND ((? = 1 AND " +
"`DOGUM_YERI` IS NULL) OR (`DOGUM_YERI` = ?)) AND ((? = 1 AND `DOGUM_TARIHI` IS N" +
"ULL) OR (`DOGUM_TARIHI` = ?)) AND ((? = 1 AND `MEDENI_HALI` IS NULL) OR (`MEDENI" +
"_HALI` = ?)) AND ((? = 1 AND `DINI` IS NULL) OR (`DINI` = ?)) AND ((? = 1 AND `K" +
"AN_GRUBU` IS NULL) OR (`KAN_GRUBU` = ?)) AND ((? = 1 AND `ILI` IS NULL) OR (`ILI" +
"` = ?)) AND ((? = 1 AND `ILCESI` IS NULL) OR (`ILCESI` = ?)) AND ((? = 1 AND `MA" +
"HALLE_KOY` IS NULL) OR (`MAHALLE_KOY` = ?)) AND ((? = 1 AND `CILT_NO` IS NULL) O" +
"R (`CILT_NO` = ?)) AND ((? = 1 AND `AILESIRA_NO` IS NULL) OR (`AILESIRA_NO` = ?)" +
") AND ((? = 1 AND `SIRA_NO` IS NULL) OR (`SIRA_NO` = ?)) AND ((? = 1 AND `VERILD" +
"IGI_YER` IS NULL) OR (`VERILDIGI_YER` = ?)) AND ((? = 1 AND `VERILIS_NEDENI` IS " +
"NULL) OR (`VERILIS_NEDENI` = ?)) AND ((? = 1 AND `KAYIT_NO` IS NULL) OR (`KAYIT_" +
"NO` = ?)) AND ((? = 1 AND `VERILIS_TARIHI` IS NULL) OR (`VERILIS_TARIHI` = ?)) A" +
"ND ((? = 1 AND `ONCEKI_SOYADI` IS NULL) OR (`ONCEKI_SOYADI` = ?)) AND ((? = 1 AN" +
"D `MESLEGI` IS NULL) OR (`MESLEGI` = ?)) AND ((? = 1 AND `OGRENIM_DURUMU` IS NUL" +
"L) OR (`OGRENIM_DURUMU` = ?)) AND ((? = 1 AND `ASKKAYIT_NO` IS NULL) OR (`ASKKAY" +
"IT_NO` = ?)) AND ((? = 1 AND `CEP_TEL` IS NULL) OR (`CEP_TEL` = ?)) AND ((? = 1 " +
"AND `VERGI_NO` IS NULL) OR (`VERGI_NO` = ?)) AND ((? = 1 AND `VERGI_DAIRESI` IS " +
"NULL) OR (`VERGI_DAIRESI` = ?)) AND ((? = 1 AND `KAYIT_TARIHI` IS NULL) OR (`KAY" +
"IT_TARIHI` = ?)) AND ((? = 1 AND `SEMT_MAH` IS NULL) OR (`SEMT_MAH` = ?)) AND ((" +
"? = 1 AND `CADDE` IS NULL) OR (`CADDE` = ?)) AND ((? = 1 AND `SOKAK` IS NULL) OR" +
" (`SOKAK` = ?)) AND ((? = 1 AND `SITE` IS NULL) OR (`SITE` = ?)) AND ((? = 1 AND" +
" `APT_ADI` IS NULL) OR (`APT_ADI` = ?)) AND ((? = 1 AND `BINA_NO` IS NULL) OR (`" +
"BINA_NO` = ?)) AND ((? = 1 AND `DAIRE_NO` IS NULL) OR (`DAIRE_NO` = ?)) AND ((? " +
"= 1 AND `IL` IS NULL) OR (`IL` = ?)) AND ((? = 1 AND `ILCE` IS NULL) OR (`ILCE` " +
"= ?)) AND ((? = 1 AND `BUCAK_KOY` IS NULL) OR (`BUCAK_KOY` = ?)) AND ((? = 1 AND" +
" `OTURDUGU_EV` IS NULL) OR (`OTURDUGU_EV` = ?)) AND ((? = 1 AND `FAKIRLIK_DERECE" +
"` IS NULL) OR (`FAKIRLIK_DERECE` = ?)) AND ((? = 1 AND `KONUT_TURU` IS NULL) OR " +
"(`KONUT_TURU` = ?)) AND ((? = 1 AND `ODA_SAYISI` IS NULL) OR (`ODA_SAYISI` = ?))" +
" AND ((? = 1 AND `M2` IS NULL) OR (`M2` = ?)) AND ((? = 1 AND `RESIM_ADRESI` IS " +
"NULL) OR (`RESIM_ADRESI` = ?)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ID", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ID", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_TC_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TC_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SOYADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SOYADI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SOYADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SOYADI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ADI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ADI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BABA_ADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BABA_ADI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BABA_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BABA_ADI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ANA_ADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ANA_ADI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ANA_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ANA_ADI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_DOGUM_YERI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DOGUM_YERI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_DOGUM_YERI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DOGUM_YERI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_DOGUM_TARIHI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DOGUM_TARIHI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_DOGUM_TARIHI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DOGUM_TARIHI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MEDENI_HALI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MEDENI_HALI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MEDENI_HALI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MEDENI_HALI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_DINI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DINI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_DINI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DINI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_KAN_GRUBU", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAN_GRUBU", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_KAN_GRUBU", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAN_GRUBU", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ILI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ILI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ILCESI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILCESI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ILCESI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILCESI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MAHALLE_KOY", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MAHALLE_KOY", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MAHALLE_KOY", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MAHALLE_KOY", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CILT_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CILT_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CILT_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CILT_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_AILESIRA_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AILESIRA_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_AILESIRA_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AILESIRA_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SIRA_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SIRA_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SIRA_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SIRA_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VERILDIGI_YER", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILDIGI_YER", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VERILDIGI_YER", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILDIGI_YER", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VERILIS_NEDENI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILIS_NEDENI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VERILIS_NEDENI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILIS_NEDENI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_KAYIT_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAYIT_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_KAYIT_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAYIT_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VERILIS_TARIHI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILIS_TARIHI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VERILIS_TARIHI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILIS_TARIHI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ONCEKI_SOYADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ONCEKI_SOYADI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ONCEKI_SOYADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ONCEKI_SOYADI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MESLEGI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MESLEGI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MESLEGI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MESLEGI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_OGRENIM_DURUMU", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OGRENIM_DURUMU", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_OGRENIM_DURUMU", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OGRENIM_DURUMU", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ASKKAYIT_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ASKKAYIT_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ASKKAYIT_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ASKKAYIT_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CEP_TEL", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CEP_TEL", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CEP_TEL", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CEP_TEL", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VERGI_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERGI_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VERGI_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERGI_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VERGI_DAIRESI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERGI_DAIRESI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VERGI_DAIRESI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERGI_DAIRESI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_KAYIT_TARIHI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAYIT_TARIHI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_KAYIT_TARIHI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAYIT_TARIHI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SEMT_MAH", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SEMT_MAH", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SEMT_MAH", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SEMT_MAH", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CADDE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CADDE", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CADDE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CADDE", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SOKAK", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SOKAK", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SOKAK", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SOKAK", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SITE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SITE", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SITE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SITE", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_APT_ADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "APT_ADI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_APT_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "APT_ADI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BINA_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BINA_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BINA_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BINA_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_DAIRE_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DAIRE_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_DAIRE_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DAIRE_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_IL", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "IL", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_IL", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "IL", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ILCE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILCE", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ILCE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILCE", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BUCAK_KOY", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BUCAK_KOY", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BUCAK_KOY", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BUCAK_KOY", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_OTURDUGU_EV", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OTURDUGU_EV", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_OTURDUGU_EV", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OTURDUGU_EV", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_FAKIRLIK_DERECE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FAKIRLIK_DERECE", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_FAKIRLIK_DERECE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FAKIRLIK_DERECE", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_KONUT_TURU", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KONUT_TURU", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_KONUT_TURU", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KONUT_TURU", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ODA_SAYISI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ODA_SAYISI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ODA_SAYISI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ODA_SAYISI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_M2", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "M2", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_M2", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "M2", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_RESIM_ADRESI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RESIM_ADRESI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_RESIM_ADRESI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RESIM_ADRESI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = @"INSERT INTO `kisibilgiler` (`TC_NO`, `SOYADI`, `ADI`, `BABA_ADI`, `ANA_ADI`, `DOGUM_YERI`, `DOGUM_TARIHI`, `MEDENI_HALI`, `DINI`, `KAN_GRUBU`, `ILI`, `ILCESI`, `MAHALLE_KOY`, `CILT_NO`, `AILESIRA_NO`, `SIRA_NO`, `VERILDIGI_YER`, `VERILIS_NEDENI`, `KAYIT_NO`, `VERILIS_TARIHI`, `ONCEKI_SOYADI`, `MESLEGI`, `OGRENIM_DURUMU`, `ASKKAYIT_NO`, `CEP_TEL`, `VERGI_NO`, `VERGI_DAIRESI`, `KAYIT_TARIHI`, `SEMT_MAH`, `CADDE`, `SOKAK`, `SITE`, `APT_ADI`, `BINA_NO`, `DAIRE_NO`, `IL`, `ILCE`, `BUCAK_KOY`, `OTURDUGU_EV`, `FAKIRLIK_DERECE`, `KONUT_TURU`, `ODA_SAYISI`, `M2`, `RESIM_ADRESI`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("TC_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TC_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SOYADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SOYADI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ADI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BABA_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BABA_ADI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ANA_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ANA_ADI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("DOGUM_YERI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DOGUM_YERI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("DOGUM_TARIHI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DOGUM_TARIHI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MEDENI_HALI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MEDENI_HALI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("DINI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DINI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("KAN_GRUBU", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAN_GRUBU", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ILI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ILCESI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILCESI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MAHALLE_KOY", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MAHALLE_KOY", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CILT_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CILT_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("AILESIRA_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AILESIRA_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SIRA_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SIRA_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VERILDIGI_YER", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILDIGI_YER", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VERILIS_NEDENI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILIS_NEDENI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("KAYIT_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAYIT_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VERILIS_TARIHI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILIS_TARIHI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ONCEKI_SOYADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ONCEKI_SOYADI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MESLEGI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MESLEGI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("OGRENIM_DURUMU", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OGRENIM_DURUMU", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ASKKAYIT_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ASKKAYIT_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CEP_TEL", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CEP_TEL", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VERGI_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERGI_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VERGI_DAIRESI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERGI_DAIRESI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("KAYIT_TARIHI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAYIT_TARIHI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SEMT_MAH", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SEMT_MAH", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CADDE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CADDE", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SOKAK", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SOKAK", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SITE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SITE", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("APT_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "APT_ADI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BINA_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BINA_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("DAIRE_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DAIRE_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IL", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "IL", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ILCE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILCE", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BUCAK_KOY", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BUCAK_KOY", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("OTURDUGU_EV", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OTURDUGU_EV", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("FAKIRLIK_DERECE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FAKIRLIK_DERECE", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("KONUT_TURU", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KONUT_TURU", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ODA_SAYISI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ODA_SAYISI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("M2", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "M2", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("RESIM_ADRESI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RESIM_ADRESI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
this._adapter.UpdateCommand.CommandText = "UPDATE `kisibilgiler` SET `TC_NO` = ?, `SOYADI` = ?, `ADI` = ?, `BABA_ADI` = ?, `" +
"ANA_ADI` = ?, `DOGUM_YERI` = ?, `DOGUM_TARIHI` = ?, `MEDENI_HALI` = ?, `DINI` = " +
"?, `KAN_GRUBU` = ?, `ILI` = ?, `ILCESI` = ?, `MAHALLE_KOY` = ?, `CILT_NO` = ?, `" +
"AILESIRA_NO` = ?, `SIRA_NO` = ?, `VERILDIGI_YER` = ?, `VERILIS_NEDENI` = ?, `KAY" +
"IT_NO` = ?, `VERILIS_TARIHI` = ?, `ONCEKI_SOYADI` = ?, `MESLEGI` = ?, `OGRENIM_D" +
"URUMU` = ?, `ASKKAYIT_NO` = ?, `CEP_TEL` = ?, `VERGI_NO` = ?, `VERGI_DAIRESI` = " +
"?, `KAYIT_TARIHI` = ?, `SEMT_MAH` = ?, `CADDE` = ?, `SOKAK` = ?, `SITE` = ?, `AP" +
"T_ADI` = ?, `BINA_NO` = ?, `DAIRE_NO` = ?, `IL` = ?, `ILCE` = ?, `BUCAK_KOY` = ?" +
", `OTURDUGU_EV` = ?, `FAKIRLIK_DERECE` = ?, `KONUT_TURU` = ?, `ODA_SAYISI` = ?, " +
"`M2` = ?, `RESIM_ADRESI` = ? WHERE (((? = 1 AND `ID` IS NULL) OR (`ID` = ?)) AND" +
" (`TC_NO` = ?) AND ((? = 1 AND `SOYADI` IS NULL) OR (`SOYADI` = ?)) AND ((? = 1 " +
"AND `ADI` IS NULL) OR (`ADI` = ?)) AND ((? = 1 AND `BABA_ADI` IS NULL) OR (`BABA" +
"_ADI` = ?)) AND ((? = 1 AND `ANA_ADI` IS NULL) OR (`ANA_ADI` = ?)) AND ((? = 1 A" +
"ND `DOGUM_YERI` IS NULL) OR (`DOGUM_YERI` = ?)) AND ((? = 1 AND `DOGUM_TARIHI` I" +
"S NULL) OR (`DOGUM_TARIHI` = ?)) AND ((? = 1 AND `MEDENI_HALI` IS NULL) OR (`MED" +
"ENI_HALI` = ?)) AND ((? = 1 AND `DINI` IS NULL) OR (`DINI` = ?)) AND ((? = 1 AND" +
" `KAN_GRUBU` IS NULL) OR (`KAN_GRUBU` = ?)) AND ((? = 1 AND `ILI` IS NULL) OR (`" +
"ILI` = ?)) AND ((? = 1 AND `ILCESI` IS NULL) OR (`ILCESI` = ?)) AND ((? = 1 AND " +
"`MAHALLE_KOY` IS NULL) OR (`MAHALLE_KOY` = ?)) AND ((? = 1 AND `CILT_NO` IS NULL" +
") OR (`CILT_NO` = ?)) AND ((? = 1 AND `AILESIRA_NO` IS NULL) OR (`AILESIRA_NO` =" +
" ?)) AND ((? = 1 AND `SIRA_NO` IS NULL) OR (`SIRA_NO` = ?)) AND ((? = 1 AND `VER" +
"ILDIGI_YER` IS NULL) OR (`VERILDIGI_YER` = ?)) AND ((? = 1 AND `VERILIS_NEDENI` " +
"IS NULL) OR (`VERILIS_NEDENI` = ?)) AND ((? = 1 AND `KAYIT_NO` IS NULL) OR (`KAY" +
"IT_NO` = ?)) AND ((? = 1 AND `VERILIS_TARIHI` IS NULL) OR (`VERILIS_TARIHI` = ?)" +
") AND ((? = 1 AND `ONCEKI_SOYADI` IS NULL) OR (`ONCEKI_SOYADI` = ?)) AND ((? = 1" +
" AND `MESLEGI` IS NULL) OR (`MESLEGI` = ?)) AND ((? = 1 AND `OGRENIM_DURUMU` IS " +
"NULL) OR (`OGRENIM_DURUMU` = ?)) AND ((? = 1 AND `ASKKAYIT_NO` IS NULL) OR (`ASK" +
"KAYIT_NO` = ?)) AND ((? = 1 AND `CEP_TEL` IS NULL) OR (`CEP_TEL` = ?)) AND ((? =" +
" 1 AND `VERGI_NO` IS NULL) OR (`VERGI_NO` = ?)) AND ((? = 1 AND `VERGI_DAIRESI` " +
"IS NULL) OR (`VERGI_DAIRESI` = ?)) AND ((? = 1 AND `KAYIT_TARIHI` IS NULL) OR (`" +
"KAYIT_TARIHI` = ?)) AND ((? = 1 AND `SEMT_MAH` IS NULL) OR (`SEMT_MAH` = ?)) AND" +
" ((? = 1 AND `CADDE` IS NULL) OR (`CADDE` = ?)) AND ((? = 1 AND `SOKAK` IS NULL)" +
" OR (`SOKAK` = ?)) AND ((? = 1 AND `SITE` IS NULL) OR (`SITE` = ?)) AND ((? = 1 " +
"AND `APT_ADI` IS NULL) OR (`APT_ADI` = ?)) AND ((? = 1 AND `BINA_NO` IS NULL) OR" +
" (`BINA_NO` = ?)) AND ((? = 1 AND `DAIRE_NO` IS NULL) OR (`DAIRE_NO` = ?)) AND (" +
"(? = 1 AND `IL` IS NULL) OR (`IL` = ?)) AND ((? = 1 AND `ILCE` IS NULL) OR (`ILC" +
"E` = ?)) AND ((? = 1 AND `BUCAK_KOY` IS NULL) OR (`BUCAK_KOY` = ?)) AND ((? = 1 " +
"AND `OTURDUGU_EV` IS NULL) OR (`OTURDUGU_EV` = ?)) AND ((? = 1 AND `FAKIRLIK_DER" +
"ECE` IS NULL) OR (`FAKIRLIK_DERECE` = ?)) AND ((? = 1 AND `KONUT_TURU` IS NULL) " +
"OR (`KONUT_TURU` = ?)) AND ((? = 1 AND `ODA_SAYISI` IS NULL) OR (`ODA_SAYISI` = " +
"?)) AND ((? = 1 AND `M2` IS NULL) OR (`M2` = ?)) AND ((? = 1 AND `RESIM_ADRESI` " +
"IS NULL) OR (`RESIM_ADRESI` = ?)))";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("TC_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TC_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SOYADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SOYADI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ADI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BABA_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BABA_ADI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ANA_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ANA_ADI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("DOGUM_YERI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DOGUM_YERI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("DOGUM_TARIHI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DOGUM_TARIHI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MEDENI_HALI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MEDENI_HALI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("DINI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DINI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("KAN_GRUBU", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAN_GRUBU", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ILI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ILCESI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILCESI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MAHALLE_KOY", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MAHALLE_KOY", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CILT_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CILT_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("AILESIRA_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AILESIRA_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SIRA_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SIRA_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VERILDIGI_YER", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILDIGI_YER", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VERILIS_NEDENI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILIS_NEDENI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("KAYIT_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAYIT_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VERILIS_TARIHI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILIS_TARIHI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ONCEKI_SOYADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ONCEKI_SOYADI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("MESLEGI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MESLEGI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("OGRENIM_DURUMU", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OGRENIM_DURUMU", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ASKKAYIT_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ASKKAYIT_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CEP_TEL", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CEP_TEL", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VERGI_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERGI_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("VERGI_DAIRESI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERGI_DAIRESI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("KAYIT_TARIHI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAYIT_TARIHI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SEMT_MAH", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SEMT_MAH", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("CADDE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CADDE", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SOKAK", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SOKAK", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SITE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SITE", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("APT_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "APT_ADI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BINA_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BINA_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("DAIRE_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DAIRE_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IL", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "IL", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ILCE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILCE", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("BUCAK_KOY", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BUCAK_KOY", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("OTURDUGU_EV", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OTURDUGU_EV", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("FAKIRLIK_DERECE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FAKIRLIK_DERECE", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("KONUT_TURU", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KONUT_TURU", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("ODA_SAYISI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ODA_SAYISI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("M2", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "M2", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("RESIM_ADRESI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RESIM_ADRESI", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ID", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ID", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ID", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_TC_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TC_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SOYADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SOYADI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SOYADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SOYADI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ADI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ADI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BABA_ADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BABA_ADI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BABA_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BABA_ADI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ANA_ADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ANA_ADI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ANA_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ANA_ADI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_DOGUM_YERI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DOGUM_YERI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_DOGUM_YERI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DOGUM_YERI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_DOGUM_TARIHI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DOGUM_TARIHI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_DOGUM_TARIHI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DOGUM_TARIHI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MEDENI_HALI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MEDENI_HALI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MEDENI_HALI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MEDENI_HALI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_DINI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DINI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_DINI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DINI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_KAN_GRUBU", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAN_GRUBU", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_KAN_GRUBU", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAN_GRUBU", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ILI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ILI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ILCESI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILCESI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ILCESI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILCESI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MAHALLE_KOY", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MAHALLE_KOY", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MAHALLE_KOY", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MAHALLE_KOY", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CILT_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CILT_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CILT_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CILT_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_AILESIRA_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AILESIRA_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_AILESIRA_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "AILESIRA_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SIRA_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SIRA_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SIRA_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SIRA_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VERILDIGI_YER", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILDIGI_YER", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VERILDIGI_YER", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILDIGI_YER", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VERILIS_NEDENI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILIS_NEDENI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VERILIS_NEDENI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILIS_NEDENI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_KAYIT_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAYIT_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_KAYIT_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAYIT_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VERILIS_TARIHI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILIS_TARIHI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VERILIS_TARIHI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERILIS_TARIHI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ONCEKI_SOYADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ONCEKI_SOYADI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ONCEKI_SOYADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ONCEKI_SOYADI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_MESLEGI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MESLEGI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_MESLEGI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "MESLEGI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_OGRENIM_DURUMU", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OGRENIM_DURUMU", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_OGRENIM_DURUMU", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OGRENIM_DURUMU", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ASKKAYIT_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ASKKAYIT_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ASKKAYIT_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ASKKAYIT_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CEP_TEL", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CEP_TEL", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CEP_TEL", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CEP_TEL", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VERGI_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERGI_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VERGI_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERGI_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_VERGI_DAIRESI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERGI_DAIRESI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_VERGI_DAIRESI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "VERGI_DAIRESI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_KAYIT_TARIHI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAYIT_TARIHI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_KAYIT_TARIHI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KAYIT_TARIHI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SEMT_MAH", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SEMT_MAH", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SEMT_MAH", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SEMT_MAH", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_CADDE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CADDE", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_CADDE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "CADDE", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SOKAK", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SOKAK", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SOKAK", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SOKAK", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_SITE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SITE", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_SITE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SITE", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_APT_ADI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "APT_ADI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_APT_ADI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "APT_ADI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BINA_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BINA_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BINA_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BINA_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_DAIRE_NO", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DAIRE_NO", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_DAIRE_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "DAIRE_NO", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_IL", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "IL", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_IL", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "IL", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ILCE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILCE", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ILCE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ILCE", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_BUCAK_KOY", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BUCAK_KOY", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_BUCAK_KOY", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "BUCAK_KOY", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_OTURDUGU_EV", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OTURDUGU_EV", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_OTURDUGU_EV", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "OTURDUGU_EV", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_FAKIRLIK_DERECE", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FAKIRLIK_DERECE", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_FAKIRLIK_DERECE", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "FAKIRLIK_DERECE", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_KONUT_TURU", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KONUT_TURU", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_KONUT_TURU", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KONUT_TURU", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_ODA_SAYISI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ODA_SAYISI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_ODA_SAYISI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "ODA_SAYISI", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_M2", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "M2", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_M2", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "M2", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_RESIM_ADRESI", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RESIM_ADRESI", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_RESIM_ADRESI", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "RESIM_ADRESI", global::System.Data.DataRowVersion.Original, false, null));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.OleDb.OleDbConnection();
this._connection.ConnectionString = global::Belediye_Otomasyonu.Properties.Settings.Default.belediyeConnectionString1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.OleDb.OleDbCommand[1];
this._commandCollection[0] = new global::System.Data.OleDb.OleDbCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = @"SELECT ID, TC_NO, SOYADI, ADI, BABA_ADI, ANA_ADI, DOGUM_YERI, DOGUM_TARIHI, MEDENI_HALI, DINI, KAN_GRUBU, ILI, ILCESI, MAHALLE_KOY, CILT_NO, AILESIRA_NO, SIRA_NO, VERILDIGI_YER, VERILIS_NEDENI, KAYIT_NO, VERILIS_TARIHI, ONCEKI_SOYADI, MESLEGI, OGRENIM_DURUMU, ASKKAYIT_NO, CEP_TEL, VERGI_NO, VERGI_DAIRESI, KAYIT_TARIHI, SEMT_MAH, CADDE, SOKAK, SITE, APT_ADI, BINA_NO, DAIRE_NO, IL, ILCE, BUCAK_KOY, OTURDUGU_EV, FAKIRLIK_DERECE, KONUT_TURU, ODA_SAYISI, M2, RESIM_ADRESI FROM kisibilgiler";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(belediyeDataSet.kisibilgilerDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual belediyeDataSet.kisibilgilerDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
belediyeDataSet.kisibilgilerDataTable dataTable = new belediyeDataSet.kisibilgilerDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(belediyeDataSet.kisibilgilerDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(belediyeDataSet dataSet) {
return this.Adapter.Update(dataSet, "kisibilgiler");
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(global::System.Data.DataRow dataRow) {
return this.Adapter.Update(new global::System.Data.DataRow[] {
dataRow});
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(global::System.Data.DataRow[] dataRows) {
return this.Adapter.Update(dataRows);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
public virtual int Delete(
int Original_ID,
string Original_TC_NO,
string Original_SOYADI,
string Original_ADI,
string Original_BABA_ADI,
string Original_ANA_ADI,
string Original_DOGUM_YERI,
string Original_DOGUM_TARIHI,
string Original_MEDENI_HALI,
string Original_DINI,
string Original_KAN_GRUBU,
string Original_ILI,
string Original_ILCESI,
string Original_MAHALLE_KOY,
string Original_CILT_NO,
string Original_AILESIRA_NO,
string Original_SIRA_NO,
string Original_VERILDIGI_YER,
string Original_VERILIS_NEDENI,
string Original_KAYIT_NO,
string Original_VERILIS_TARIHI,
string Original_ONCEKI_SOYADI,
string Original_MESLEGI,
string Original_OGRENIM_DURUMU,
string Original_ASKKAYIT_NO,
string Original_CEP_TEL,
string Original_VERGI_NO,
string Original_VERGI_DAIRESI,
string Original_KAYIT_TARIHI,
string Original_SEMT_MAH,
string Original_CADDE,
string Original_SOKAK,
string Original_SITE,
string Original_APT_ADI,
string Original_BINA_NO,
string Original_DAIRE_NO,
string Original_IL,
string Original_ILCE,
string Original_BUCAK_KOY,
string Original_OTURDUGU_EV,
string Original_FAKIRLIK_DERECE,
string Original_KONUT_TURU,
string Original_ODA_SAYISI,
string Original_M2,
string Original_RESIM_ADRESI) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ID));
if ((Original_TC_NO == null)) {
throw new global::System.ArgumentNullException("Original_TC_NO");
}
else {
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TC_NO));
}
if ((Original_SOYADI == null)) {
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_SOYADI));
}
if ((Original_ADI == null)) {
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_ADI));
}
if ((Original_BABA_ADI == null)) {
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_BABA_ADI));
}
if ((Original_ANA_ADI == null)) {
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_ANA_ADI));
}
if ((Original_DOGUM_YERI == null)) {
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_DOGUM_YERI));
}
if ((Original_DOGUM_TARIHI == null)) {
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_DOGUM_TARIHI));
}
if ((Original_MEDENI_HALI == null)) {
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_MEDENI_HALI));
}
if ((Original_DINI == null)) {
this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_DINI));
}
if ((Original_KAN_GRUBU == null)) {
this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_KAN_GRUBU));
}
if ((Original_ILI == null)) {
this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_ILI));
}
if ((Original_ILCESI == null)) {
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_ILCESI));
}
if ((Original_MAHALLE_KOY == null)) {
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[26].Value = ((string)(Original_MAHALLE_KOY));
}
if ((Original_CILT_NO == null)) {
this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_CILT_NO));
}
if ((Original_AILESIRA_NO == null)) {
this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[30].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[29].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[30].Value = ((string)(Original_AILESIRA_NO));
}
if ((Original_SIRA_NO == null)) {
this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[32].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[31].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[32].Value = ((string)(Original_SIRA_NO));
}
if ((Original_VERILDIGI_YER == null)) {
this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[34].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[33].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[34].Value = ((string)(Original_VERILDIGI_YER));
}
if ((Original_VERILIS_NEDENI == null)) {
this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[36].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[35].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[36].Value = ((string)(Original_VERILIS_NEDENI));
}
if ((Original_KAYIT_NO == null)) {
this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[38].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[37].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[38].Value = ((string)(Original_KAYIT_NO));
}
if ((Original_VERILIS_TARIHI == null)) {
this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[40].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[40].Value = ((string)(Original_VERILIS_TARIHI));
}
if ((Original_ONCEKI_SOYADI == null)) {
this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[42].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[42].Value = ((string)(Original_ONCEKI_SOYADI));
}
if ((Original_MESLEGI == null)) {
this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[44].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[44].Value = ((string)(Original_MESLEGI));
}
if ((Original_OGRENIM_DURUMU == null)) {
this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[46].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[45].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[46].Value = ((string)(Original_OGRENIM_DURUMU));
}
if ((Original_ASKKAYIT_NO == null)) {
this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[48].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[47].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[48].Value = ((string)(Original_ASKKAYIT_NO));
}
if ((Original_CEP_TEL == null)) {
this.Adapter.DeleteCommand.Parameters[49].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[50].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[49].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[50].Value = ((string)(Original_CEP_TEL));
}
if ((Original_VERGI_NO == null)) {
this.Adapter.DeleteCommand.Parameters[51].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[52].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[51].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[52].Value = ((string)(Original_VERGI_NO));
}
if ((Original_VERGI_DAIRESI == null)) {
this.Adapter.DeleteCommand.Parameters[53].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[54].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[53].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[54].Value = ((string)(Original_VERGI_DAIRESI));
}
if ((Original_KAYIT_TARIHI == null)) {
this.Adapter.DeleteCommand.Parameters[55].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[56].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[55].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[56].Value = ((string)(Original_KAYIT_TARIHI));
}
if ((Original_SEMT_MAH == null)) {
this.Adapter.DeleteCommand.Parameters[57].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[58].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[57].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[58].Value = ((string)(Original_SEMT_MAH));
}
if ((Original_CADDE == null)) {
this.Adapter.DeleteCommand.Parameters[59].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[60].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[59].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[60].Value = ((string)(Original_CADDE));
}
if ((Original_SOKAK == null)) {
this.Adapter.DeleteCommand.Parameters[61].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[62].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[61].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[62].Value = ((string)(Original_SOKAK));
}
if ((Original_SITE == null)) {
this.Adapter.DeleteCommand.Parameters[63].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[64].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[63].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[64].Value = ((string)(Original_SITE));
}
if ((Original_APT_ADI == null)) {
this.Adapter.DeleteCommand.Parameters[65].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[66].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[65].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[66].Value = ((string)(Original_APT_ADI));
}
if ((Original_BINA_NO == null)) {
this.Adapter.DeleteCommand.Parameters[67].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[68].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[67].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[68].Value = ((string)(Original_BINA_NO));
}
if ((Original_DAIRE_NO == null)) {
this.Adapter.DeleteCommand.Parameters[69].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[70].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[69].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[70].Value = ((string)(Original_DAIRE_NO));
}
if ((Original_IL == null)) {
this.Adapter.DeleteCommand.Parameters[71].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[72].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[71].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[72].Value = ((string)(Original_IL));
}
if ((Original_ILCE == null)) {
this.Adapter.DeleteCommand.Parameters[73].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[74].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[73].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[74].Value = ((string)(Original_ILCE));
}
if ((Original_BUCAK_KOY == null)) {
this.Adapter.DeleteCommand.Parameters[75].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[76].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[75].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[76].Value = ((string)(Original_BUCAK_KOY));
}
if ((Original_OTURDUGU_EV == null)) {
this.Adapter.DeleteCommand.Parameters[77].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[78].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[77].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[78].Value = ((string)(Original_OTURDUGU_EV));
}
if ((Original_FAKIRLIK_DERECE == null)) {
this.Adapter.DeleteCommand.Parameters[79].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[80].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[79].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[80].Value = ((string)(Original_FAKIRLIK_DERECE));
}
if ((Original_KONUT_TURU == null)) {
this.Adapter.DeleteCommand.Parameters[81].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[82].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[81].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[82].Value = ((string)(Original_KONUT_TURU));
}
if ((Original_ODA_SAYISI == null)) {
this.Adapter.DeleteCommand.Parameters[83].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[84].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[83].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[84].Value = ((string)(Original_ODA_SAYISI));
}
if ((Original_M2 == null)) {
this.Adapter.DeleteCommand.Parameters[85].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[86].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[85].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[86].Value = ((string)(Original_M2));
}
if ((Original_RESIM_ADRESI == null)) {
this.Adapter.DeleteCommand.Parameters[87].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[88].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[87].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[88].Value = ((string)(Original_RESIM_ADRESI));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.DeleteCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.DeleteCommand.Connection.Close();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(
string TC_NO,
string SOYADI,
string ADI,
string BABA_ADI,
string ANA_ADI,
string DOGUM_YERI,
string DOGUM_TARIHI,
string MEDENI_HALI,
string DINI,
string KAN_GRUBU,
string ILI,
string ILCESI,
string MAHALLE_KOY,
string CILT_NO,
string AILESIRA_NO,
string SIRA_NO,
string VERILDIGI_YER,
string VERILIS_NEDENI,
string KAYIT_NO,
string VERILIS_TARIHI,
string ONCEKI_SOYADI,
string MESLEGI,
string OGRENIM_DURUMU,
string ASKKAYIT_NO,
string CEP_TEL,
string VERGI_NO,
string VERGI_DAIRESI,
string KAYIT_TARIHI,
string SEMT_MAH,
string CADDE,
string SOKAK,
string SITE,
string APT_ADI,
string BINA_NO,
string DAIRE_NO,
string IL,
string ILCE,
string BUCAK_KOY,
string OTURDUGU_EV,
string FAKIRLIK_DERECE,
string KONUT_TURU,
string ODA_SAYISI,
string M2,
string RESIM_ADRESI) {
if ((TC_NO == null)) {
throw new global::System.ArgumentNullException("TC_NO");
}
else {
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TC_NO));
}
if ((SOYADI == null)) {
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(SOYADI));
}
if ((ADI == null)) {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(ADI));
}
if ((BABA_ADI == null)) {
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(BABA_ADI));
}
if ((ANA_ADI == null)) {
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ANA_ADI));
}
if ((DOGUM_YERI == null)) {
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(DOGUM_YERI));
}
if ((DOGUM_TARIHI == null)) {
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(DOGUM_TARIHI));
}
if ((MEDENI_HALI == null)) {
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(MEDENI_HALI));
}
if ((DINI == null)) {
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[8].Value = ((string)(DINI));
}
if ((KAN_GRUBU == null)) {
this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[9].Value = ((string)(KAN_GRUBU));
}
if ((ILI == null)) {
this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[10].Value = ((string)(ILI));
}
if ((ILCESI == null)) {
this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[11].Value = ((string)(ILCESI));
}
if ((MAHALLE_KOY == null)) {
this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[12].Value = ((string)(MAHALLE_KOY));
}
if ((CILT_NO == null)) {
this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[13].Value = ((string)(CILT_NO));
}
if ((AILESIRA_NO == null)) {
this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[14].Value = ((string)(AILESIRA_NO));
}
if ((SIRA_NO == null)) {
this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[15].Value = ((string)(SIRA_NO));
}
if ((VERILDIGI_YER == null)) {
this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[16].Value = ((string)(VERILDIGI_YER));
}
if ((VERILIS_NEDENI == null)) {
this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[17].Value = ((string)(VERILIS_NEDENI));
}
if ((KAYIT_NO == null)) {
this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[18].Value = ((string)(KAYIT_NO));
}
if ((VERILIS_TARIHI == null)) {
this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[19].Value = ((string)(VERILIS_TARIHI));
}
if ((ONCEKI_SOYADI == null)) {
this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[20].Value = ((string)(ONCEKI_SOYADI));
}
if ((MESLEGI == null)) {
this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[21].Value = ((string)(MESLEGI));
}
if ((OGRENIM_DURUMU == null)) {
this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[22].Value = ((string)(OGRENIM_DURUMU));
}
if ((ASKKAYIT_NO == null)) {
this.Adapter.InsertCommand.Parameters[23].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[23].Value = ((string)(ASKKAYIT_NO));
}
if ((CEP_TEL == null)) {
this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[24].Value = ((string)(CEP_TEL));
}
if ((VERGI_NO == null)) {
this.Adapter.InsertCommand.Parameters[25].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[25].Value = ((string)(VERGI_NO));
}
if ((VERGI_DAIRESI == null)) {
this.Adapter.InsertCommand.Parameters[26].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[26].Value = ((string)(VERGI_DAIRESI));
}
if ((KAYIT_TARIHI == null)) {
this.Adapter.InsertCommand.Parameters[27].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[27].Value = ((string)(KAYIT_TARIHI));
}
if ((SEMT_MAH == null)) {
this.Adapter.InsertCommand.Parameters[28].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[28].Value = ((string)(SEMT_MAH));
}
if ((CADDE == null)) {
this.Adapter.InsertCommand.Parameters[29].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[29].Value = ((string)(CADDE));
}
if ((SOKAK == null)) {
this.Adapter.InsertCommand.Parameters[30].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[30].Value = ((string)(SOKAK));
}
if ((SITE == null)) {
this.Adapter.InsertCommand.Parameters[31].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[31].Value = ((string)(SITE));
}
if ((APT_ADI == null)) {
this.Adapter.InsertCommand.Parameters[32].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[32].Value = ((string)(APT_ADI));
}
if ((BINA_NO == null)) {
this.Adapter.InsertCommand.Parameters[33].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[33].Value = ((string)(BINA_NO));
}
if ((DAIRE_NO == null)) {
this.Adapter.InsertCommand.Parameters[34].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[34].Value = ((string)(DAIRE_NO));
}
if ((IL == null)) {
this.Adapter.InsertCommand.Parameters[35].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[35].Value = ((string)(IL));
}
if ((ILCE == null)) {
this.Adapter.InsertCommand.Parameters[36].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[36].Value = ((string)(ILCE));
}
if ((BUCAK_KOY == null)) {
this.Adapter.InsertCommand.Parameters[37].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[37].Value = ((string)(BUCAK_KOY));
}
if ((OTURDUGU_EV == null)) {
this.Adapter.InsertCommand.Parameters[38].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[38].Value = ((string)(OTURDUGU_EV));
}
if ((FAKIRLIK_DERECE == null)) {
this.Adapter.InsertCommand.Parameters[39].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[39].Value = ((string)(FAKIRLIK_DERECE));
}
if ((KONUT_TURU == null)) {
this.Adapter.InsertCommand.Parameters[40].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[40].Value = ((string)(KONUT_TURU));
}
if ((ODA_SAYISI == null)) {
this.Adapter.InsertCommand.Parameters[41].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[41].Value = ((string)(ODA_SAYISI));
}
if ((M2 == null)) {
this.Adapter.InsertCommand.Parameters[42].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[42].Value = ((string)(M2));
}
if ((RESIM_ADRESI == null)) {
this.Adapter.InsertCommand.Parameters[43].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[43].Value = ((string)(RESIM_ADRESI));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.InsertCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.InsertCommand.Connection.Close();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(
string TC_NO,
string SOYADI,
string ADI,
string BABA_ADI,
string ANA_ADI,
string DOGUM_YERI,
string DOGUM_TARIHI,
string MEDENI_HALI,
string DINI,
string KAN_GRUBU,
string ILI,
string ILCESI,
string MAHALLE_KOY,
string CILT_NO,
string AILESIRA_NO,
string SIRA_NO,
string VERILDIGI_YER,
string VERILIS_NEDENI,
string KAYIT_NO,
string VERILIS_TARIHI,
string ONCEKI_SOYADI,
string MESLEGI,
string OGRENIM_DURUMU,
string ASKKAYIT_NO,
string CEP_TEL,
string VERGI_NO,
string VERGI_DAIRESI,
string KAYIT_TARIHI,
string SEMT_MAH,
string CADDE,
string SOKAK,
string SITE,
string APT_ADI,
string BINA_NO,
string DAIRE_NO,
string IL,
string ILCE,
string BUCAK_KOY,
string OTURDUGU_EV,
string FAKIRLIK_DERECE,
string KONUT_TURU,
string ODA_SAYISI,
string M2,
string RESIM_ADRESI,
int Original_ID,
string Original_TC_NO,
string Original_SOYADI,
string Original_ADI,
string Original_BABA_ADI,
string Original_ANA_ADI,
string Original_DOGUM_YERI,
string Original_DOGUM_TARIHI,
string Original_MEDENI_HALI,
string Original_DINI,
string Original_KAN_GRUBU,
string Original_ILI,
string Original_ILCESI,
string Original_MAHALLE_KOY,
string Original_CILT_NO,
string Original_AILESIRA_NO,
string Original_SIRA_NO,
string Original_VERILDIGI_YER,
string Original_VERILIS_NEDENI,
string Original_KAYIT_NO,
string Original_VERILIS_TARIHI,
string Original_ONCEKI_SOYADI,
string Original_MESLEGI,
string Original_OGRENIM_DURUMU,
string Original_ASKKAYIT_NO,
string Original_CEP_TEL,
string Original_VERGI_NO,
string Original_VERGI_DAIRESI,
string Original_KAYIT_TARIHI,
string Original_SEMT_MAH,
string Original_CADDE,
string Original_SOKAK,
string Original_SITE,
string Original_APT_ADI,
string Original_BINA_NO,
string Original_DAIRE_NO,
string Original_IL,
string Original_ILCE,
string Original_BUCAK_KOY,
string Original_OTURDUGU_EV,
string Original_FAKIRLIK_DERECE,
string Original_KONUT_TURU,
string Original_ODA_SAYISI,
string Original_M2,
string Original_RESIM_ADRESI) {
if ((TC_NO == null)) {
throw new global::System.ArgumentNullException("TC_NO");
}
else {
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TC_NO));
}
if ((SOYADI == null)) {
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(SOYADI));
}
if ((ADI == null)) {
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(ADI));
}
if ((BABA_ADI == null)) {
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(BABA_ADI));
}
if ((ANA_ADI == null)) {
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(ANA_ADI));
}
if ((DOGUM_YERI == null)) {
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(DOGUM_YERI));
}
if ((DOGUM_TARIHI == null)) {
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(DOGUM_TARIHI));
}
if ((MEDENI_HALI == null)) {
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(MEDENI_HALI));
}
if ((DINI == null)) {
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(DINI));
}
if ((KAN_GRUBU == null)) {
this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(KAN_GRUBU));
}
if ((ILI == null)) {
this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(ILI));
}
if ((ILCESI == null)) {
this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(ILCESI));
}
if ((MAHALLE_KOY == null)) {
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(MAHALLE_KOY));
}
if ((CILT_NO == null)) {
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(CILT_NO));
}
if ((AILESIRA_NO == null)) {
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(AILESIRA_NO));
}
if ((SIRA_NO == null)) {
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(SIRA_NO));
}
if ((VERILDIGI_YER == null)) {
this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(VERILDIGI_YER));
}
if ((VERILIS_NEDENI == null)) {
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(VERILIS_NEDENI));
}
if ((KAYIT_NO == null)) {
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(KAYIT_NO));
}
if ((VERILIS_TARIHI == null)) {
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(VERILIS_TARIHI));
}
if ((ONCEKI_SOYADI == null)) {
this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(ONCEKI_SOYADI));
}
if ((MESLEGI == null)) {
this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(MESLEGI));
}
if ((OGRENIM_DURUMU == null)) {
this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(OGRENIM_DURUMU));
}
if ((ASKKAYIT_NO == null)) {
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(ASKKAYIT_NO));
}
if ((CEP_TEL == null)) {
this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(CEP_TEL));
}
if ((VERGI_NO == null)) {
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(VERGI_NO));
}
if ((VERGI_DAIRESI == null)) {
this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(VERGI_DAIRESI));
}
if ((KAYIT_TARIHI == null)) {
this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(KAYIT_TARIHI));
}
if ((SEMT_MAH == null)) {
this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(SEMT_MAH));
}
if ((CADDE == null)) {
this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(CADDE));
}
if ((SOKAK == null)) {
this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(SOKAK));
}
if ((SITE == null)) {
this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(SITE));
}
if ((APT_ADI == null)) {
this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(APT_ADI));
}
if ((BINA_NO == null)) {
this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(BINA_NO));
}
if ((DAIRE_NO == null)) {
this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(DAIRE_NO));
}
if ((IL == null)) {
this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(IL));
}
if ((ILCE == null)) {
this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(ILCE));
}
if ((BUCAK_KOY == null)) {
this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(BUCAK_KOY));
}
if ((OTURDUGU_EV == null)) {
this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(OTURDUGU_EV));
}
if ((FAKIRLIK_DERECE == null)) {
this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(FAKIRLIK_DERECE));
}
if ((KONUT_TURU == null)) {
this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[40].Value = ((string)(KONUT_TURU));
}
if ((ODA_SAYISI == null)) {
this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(ODA_SAYISI));
}
if ((M2 == null)) {
this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(M2));
}
if ((RESIM_ADRESI == null)) {
this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[43].Value = ((string)(RESIM_ADRESI));
}
this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[45].Value = ((int)(Original_ID));
if ((Original_TC_NO == null)) {
throw new global::System.ArgumentNullException("Original_TC_NO");
}
else {
this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(Original_TC_NO));
}
if ((Original_SOYADI == null)) {
this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(Original_SOYADI));
}
if ((Original_ADI == null)) {
this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(Original_ADI));
}
if ((Original_BABA_ADI == null)) {
this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[52].Value = ((string)(Original_BABA_ADI));
}
if ((Original_ANA_ADI == null)) {
this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[54].Value = ((string)(Original_ANA_ADI));
}
if ((Original_DOGUM_YERI == null)) {
this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[56].Value = ((string)(Original_DOGUM_YERI));
}
if ((Original_DOGUM_TARIHI == null)) {
this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[58].Value = ((string)(Original_DOGUM_TARIHI));
}
if ((Original_MEDENI_HALI == null)) {
this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[60].Value = ((string)(Original_MEDENI_HALI));
}
if ((Original_DINI == null)) {
this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[62].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[61].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[62].Value = ((string)(Original_DINI));
}
if ((Original_KAN_GRUBU == null)) {
this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[64].Value = ((string)(Original_KAN_GRUBU));
}
if ((Original_ILI == null)) {
this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[66].Value = ((string)(Original_ILI));
}
if ((Original_ILCESI == null)) {
this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[68].Value = ((string)(Original_ILCESI));
}
if ((Original_MAHALLE_KOY == null)) {
this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[70].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[70].Value = ((string)(Original_MAHALLE_KOY));
}
if ((Original_CILT_NO == null)) {
this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[72].Value = ((string)(Original_CILT_NO));
}
if ((Original_AILESIRA_NO == null)) {
this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[74].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[74].Value = ((string)(Original_AILESIRA_NO));
}
if ((Original_SIRA_NO == null)) {
this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[76].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[76].Value = ((string)(Original_SIRA_NO));
}
if ((Original_VERILDIGI_YER == null)) {
this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[78].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[78].Value = ((string)(Original_VERILDIGI_YER));
}
if ((Original_VERILIS_NEDENI == null)) {
this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[80].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[80].Value = ((string)(Original_VERILIS_NEDENI));
}
if ((Original_KAYIT_NO == null)) {
this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[82].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[81].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[82].Value = ((string)(Original_KAYIT_NO));
}
if ((Original_VERILIS_TARIHI == null)) {
this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[84].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[83].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[84].Value = ((string)(Original_VERILIS_TARIHI));
}
if ((Original_ONCEKI_SOYADI == null)) {
this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[86].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[85].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[86].Value = ((string)(Original_ONCEKI_SOYADI));
}
if ((Original_MESLEGI == null)) {
this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[88].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[87].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[88].Value = ((string)(Original_MESLEGI));
}
if ((Original_OGRENIM_DURUMU == null)) {
this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[90].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[89].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[90].Value = ((string)(Original_OGRENIM_DURUMU));
}
if ((Original_ASKKAYIT_NO == null)) {
this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[92].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[91].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[92].Value = ((string)(Original_ASKKAYIT_NO));
}
if ((Original_CEP_TEL == null)) {
this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[94].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[93].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[94].Value = ((string)(Original_CEP_TEL));
}
if ((Original_VERGI_NO == null)) {
this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[96].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[95].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[96].Value = ((string)(Original_VERGI_NO));
}
if ((Original_VERGI_DAIRESI == null)) {
this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[98].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[97].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[98].Value = ((string)(Original_VERGI_DAIRESI));
}
if ((Original_KAYIT_TARIHI == null)) {
this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[100].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[99].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[100].Value = ((string)(Original_KAYIT_TARIHI));
}
if ((Original_SEMT_MAH == null)) {
this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[102].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[101].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[102].Value = ((string)(Original_SEMT_MAH));
}
if ((Original_CADDE == null)) {
this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[104].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[103].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[104].Value = ((string)(Original_CADDE));
}
if ((Original_SOKAK == null)) {
this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[106].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[105].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[106].Value = ((string)(Original_SOKAK));
}
if ((Original_SITE == null)) {
this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[108].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[107].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[108].Value = ((string)(Original_SITE));
}
if ((Original_APT_ADI == null)) {
this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[110].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[109].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[110].Value = ((string)(Original_APT_ADI));
}
if ((Original_BINA_NO == null)) {
this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[112].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[111].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[112].Value = ((string)(Original_BINA_NO));
}
if ((Original_DAIRE_NO == null)) {
this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[114].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[113].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[114].Value = ((string)(Original_DAIRE_NO));
}
if ((Original_IL == null)) {
this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[116].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[115].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[116].Value = ((string)(Original_IL));
}
if ((Original_ILCE == null)) {
this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[118].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[117].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[118].Value = ((string)(Original_ILCE));
}
if ((Original_BUCAK_KOY == null)) {
this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[120].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[119].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[120].Value = ((string)(Original_BUCAK_KOY));
}
if ((Original_OTURDUGU_EV == null)) {
this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[122].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[121].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[122].Value = ((string)(Original_OTURDUGU_EV));
}
if ((Original_FAKIRLIK_DERECE == null)) {
this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[124].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[123].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[124].Value = ((string)(Original_FAKIRLIK_DERECE));
}
if ((Original_KONUT_TURU == null)) {
this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[126].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[125].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[126].Value = ((string)(Original_KONUT_TURU));
}
if ((Original_ODA_SAYISI == null)) {
this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[128].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[127].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[128].Value = ((string)(Original_ODA_SAYISI));
}
if ((Original_M2 == null)) {
this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[130].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[129].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[130].Value = ((string)(Original_M2));
}
if ((Original_RESIM_ADRESI == null)) {
this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[132].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[131].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[132].Value = ((string)(Original_RESIM_ADRESI));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.UpdateCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.UpdateCommand.Connection.Close();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(
string SOYADI,
string ADI,
string BABA_ADI,
string ANA_ADI,
string DOGUM_YERI,
string DOGUM_TARIHI,
string MEDENI_HALI,
string DINI,
string KAN_GRUBU,
string ILI,
string ILCESI,
string MAHALLE_KOY,
string CILT_NO,
string AILESIRA_NO,
string SIRA_NO,
string VERILDIGI_YER,
string VERILIS_NEDENI,
string KAYIT_NO,
string VERILIS_TARIHI,
string ONCEKI_SOYADI,
string MESLEGI,
string OGRENIM_DURUMU,
string ASKKAYIT_NO,
string CEP_TEL,
string VERGI_NO,
string VERGI_DAIRESI,
string KAYIT_TARIHI,
string SEMT_MAH,
string CADDE,
string SOKAK,
string SITE,
string APT_ADI,
string BINA_NO,
string DAIRE_NO,
string IL,
string ILCE,
string BUCAK_KOY,
string OTURDUGU_EV,
string FAKIRLIK_DERECE,
string KONUT_TURU,
string ODA_SAYISI,
string M2,
string RESIM_ADRESI,
int Original_ID,
string Original_TC_NO,
string Original_SOYADI,
string Original_ADI,
string Original_BABA_ADI,
string Original_ANA_ADI,
string Original_DOGUM_YERI,
string Original_DOGUM_TARIHI,
string Original_MEDENI_HALI,
string Original_DINI,
string Original_KAN_GRUBU,
string Original_ILI,
string Original_ILCESI,
string Original_MAHALLE_KOY,
string Original_CILT_NO,
string Original_AILESIRA_NO,
string Original_SIRA_NO,
string Original_VERILDIGI_YER,
string Original_VERILIS_NEDENI,
string Original_KAYIT_NO,
string Original_VERILIS_TARIHI,
string Original_ONCEKI_SOYADI,
string Original_MESLEGI,
string Original_OGRENIM_DURUMU,
string Original_ASKKAYIT_NO,
string Original_CEP_TEL,
string Original_VERGI_NO,
string Original_VERGI_DAIRESI,
string Original_KAYIT_TARIHI,
string Original_SEMT_MAH,
string Original_CADDE,
string Original_SOKAK,
string Original_SITE,
string Original_APT_ADI,
string Original_BINA_NO,
string Original_DAIRE_NO,
string Original_IL,
string Original_ILCE,
string Original_BUCAK_KOY,
string Original_OTURDUGU_EV,
string Original_FAKIRLIK_DERECE,
string Original_KONUT_TURU,
string Original_ODA_SAYISI,
string Original_M2,
string Original_RESIM_ADRESI) {
return this.Update(Original_TC_NO, SOYADI, ADI, BABA_ADI, ANA_ADI, DOGUM_YERI, DOGUM_TARIHI, MEDENI_HALI, DINI, KAN_GRUBU, ILI, ILCESI, MAHALLE_KOY, CILT_NO, AILESIRA_NO, SIRA_NO, VERILDIGI_YER, VERILIS_NEDENI, KAYIT_NO, VERILIS_TARIHI, ONCEKI_SOYADI, MESLEGI, OGRENIM_DURUMU, ASKKAYIT_NO, CEP_TEL, VERGI_NO, VERGI_DAIRESI, KAYIT_TARIHI, SEMT_MAH, CADDE, SOKAK, SITE, APT_ADI, BINA_NO, DAIRE_NO, IL, ILCE, BUCAK_KOY, OTURDUGU_EV, FAKIRLIK_DERECE, KONUT_TURU, ODA_SAYISI, M2, RESIM_ADRESI, Original_ID, Original_TC_NO, Original_SOYADI, Original_ADI, Original_BABA_ADI, Original_ANA_ADI, Original_DOGUM_YERI, Original_DOGUM_TARIHI, Original_MEDENI_HALI, Original_DINI, Original_KAN_GRUBU, Original_ILI, Original_ILCESI, Original_MAHALLE_KOY, Original_CILT_NO, Original_AILESIRA_NO, Original_SIRA_NO, Original_VERILDIGI_YER, Original_VERILIS_NEDENI, Original_KAYIT_NO, Original_VERILIS_TARIHI, Original_ONCEKI_SOYADI, Original_MESLEGI, Original_OGRENIM_DURUMU, Original_ASKKAYIT_NO, Original_CEP_TEL, Original_VERGI_NO, Original_VERGI_DAIRESI, Original_KAYIT_TARIHI, Original_SEMT_MAH, Original_CADDE, Original_SOKAK, Original_SITE, Original_APT_ADI, Original_BINA_NO, Original_DAIRE_NO, Original_IL, Original_ILCE, Original_BUCAK_KOY, Original_OTURDUGU_EV, Original_FAKIRLIK_DERECE, Original_KONUT_TURU, Original_ODA_SAYISI, Original_M2, Original_RESIM_ADRESI);
}
}
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class PersonelTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.OleDb.OleDbDataAdapter _adapter;
private global::System.Data.OleDb.OleDbConnection _connection;
private global::System.Data.OleDb.OleDbTransaction _transaction;
private global::System.Data.OleDb.OleDbCommand[] _commandCollection;
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public PersonelTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected internal global::System.Data.OleDb.OleDbDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.OleDb.OleDbConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((global::System.Data.OleDb.OleDbCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.OleDb.OleDbTransaction Transaction {
get {
return this._transaction;
}
set {
this._transaction = value;
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
this.CommandCollection[i].Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.DeleteCommand != null))) {
this.Adapter.DeleteCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.InsertCommand != null))) {
this.Adapter.InsertCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.UpdateCommand != null))) {
this.Adapter.UpdateCommand.Transaction = this._transaction;
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected global::System.Data.OleDb.OleDbCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitAdapter() {
this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "Personel";
tableMapping.ColumnMappings.Add("Kimlik", "Kimlik");
tableMapping.ColumnMappings.Add("KullaniciAdi", "KullaniciAdi");
tableMapping.ColumnMappings.Add("Sifre", "Sifre");
tableMapping.ColumnMappings.Add("Tc", "Tc");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.OleDb.OleDbCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
this._adapter.DeleteCommand.CommandText = "DELETE FROM `Personel` WHERE (((? = 1 AND `Kimlik` IS NULL) OR (`Kimlik` = ?)) AN" +
"D ((? = 1 AND `KullaniciAdi` IS NULL) OR (`KullaniciAdi` = ?)) AND ((? = 1 AND `" +
"Sifre` IS NULL) OR (`Sifre` = ?)) AND (`Tc` = ?))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Kimlik", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Kimlik", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Kimlik", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Kimlik", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_KullaniciAdi", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KullaniciAdi", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_KullaniciAdi", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KullaniciAdi", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Sifre", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Sifre", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Sifre", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Sifre", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Tc", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Tc", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = "INSERT INTO `Personel` (`Kimlik`, `KullaniciAdi`, `Sifre`, `Tc`) VALUES (?, ?, ?," +
" ?)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Kimlik", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Kimlik", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("KullaniciAdi", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KullaniciAdi", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Sifre", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Sifre", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Tc", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Tc", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand = new global::System.Data.OleDb.OleDbCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
this._adapter.UpdateCommand.CommandText = @"UPDATE `Personel` SET `Kimlik` = ?, `KullaniciAdi` = ?, `Sifre` = ?, `Tc` = ? WHERE (((? = 1 AND `Kimlik` IS NULL) OR (`Kimlik` = ?)) AND ((? = 1 AND `KullaniciAdi` IS NULL) OR (`KullaniciAdi` = ?)) AND ((? = 1 AND `Sifre` IS NULL) OR (`Sifre` = ?)) AND (`Tc` = ?))";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Kimlik", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Kimlik", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("KullaniciAdi", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KullaniciAdi", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Sifre", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Sifre", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Tc", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Tc", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Kimlik", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Kimlik", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Kimlik", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Kimlik", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_KullaniciAdi", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KullaniciAdi", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_KullaniciAdi", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "KullaniciAdi", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("IsNull_Sifre", global::System.Data.OleDb.OleDbType.Integer, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Sifre", global::System.Data.DataRowVersion.Original, true, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Sifre", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Sifre", global::System.Data.DataRowVersion.Original, false, null));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Original_Tc", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Tc", global::System.Data.DataRowVersion.Original, false, null));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.OleDb.OleDbConnection();
this._connection.ConnectionString = global::Belediye_Otomasyonu.Properties.Settings.Default.belediyeConnectionString1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.OleDb.OleDbCommand[1];
this._commandCollection[0] = new global::System.Data.OleDb.OleDbCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT Kimlik, KullaniciAdi, Sifre, Tc FROM Personel";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(belediyeDataSet.PersonelDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual belediyeDataSet.PersonelDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
belediyeDataSet.PersonelDataTable dataTable = new belediyeDataSet.PersonelDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(belediyeDataSet.PersonelDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(belediyeDataSet dataSet) {
return this.Adapter.Update(dataSet, "Personel");
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(global::System.Data.DataRow dataRow) {
return this.Adapter.Update(new global::System.Data.DataRow[] {
dataRow});
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(global::System.Data.DataRow[] dataRows) {
return this.Adapter.Update(dataRows);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
public virtual int Delete(string Original_Kimlik, string Original_KullaniciAdi, string Original_Sifre, string Original_Tc) {
if ((Original_Kimlik == null)) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Kimlik));
}
if ((Original_KullaniciAdi == null)) {
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_KullaniciAdi));
}
if ((Original_Sifre == null)) {
this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Sifre));
}
if ((Original_Tc == null)) {
throw new global::System.ArgumentNullException("Original_Tc");
}
else {
this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Tc));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.DeleteCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.DeleteCommand.Connection.Close();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(string Kimlik, string KullaniciAdi, string Sifre, string Tc) {
if ((Kimlik == null)) {
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Kimlik));
}
if ((KullaniciAdi == null)) {
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(KullaniciAdi));
}
if ((Sifre == null)) {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Sifre));
}
if ((Tc == null)) {
throw new global::System.ArgumentNullException("Tc");
}
else {
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Tc));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.InsertCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.InsertCommand.Connection.Close();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(string Kimlik, string KullaniciAdi, string Sifre, string Tc, string Original_Kimlik, string Original_KullaniciAdi, string Original_Sifre, string Original_Tc) {
if ((Kimlik == null)) {
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Kimlik));
}
if ((KullaniciAdi == null)) {
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(KullaniciAdi));
}
if ((Sifre == null)) {
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Sifre));
}
if ((Tc == null)) {
throw new global::System.ArgumentNullException("Tc");
}
else {
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Tc));
}
if ((Original_Kimlik == null)) {
this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Kimlik));
}
if ((Original_KullaniciAdi == null)) {
this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_KullaniciAdi));
}
if ((Original_Sifre == null)) {
this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Sifre));
}
if ((Original_Tc == null)) {
throw new global::System.ArgumentNullException("Original_Tc");
}
else {
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Tc));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.UpdateCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.UpdateCommand.Connection.Close();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(string Kimlik, string KullaniciAdi, string Sifre, string Original_Kimlik, string Original_KullaniciAdi, string Original_Sifre, string Original_Tc) {
return this.Update(Kimlik, KullaniciAdi, Sifre, Original_Tc, Original_Kimlik, Original_KullaniciAdi, Original_Sifre, Original_Tc);
}
}
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class SikayetlerTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.OleDb.OleDbDataAdapter _adapter;
private global::System.Data.OleDb.OleDbConnection _connection;
private global::System.Data.OleDb.OleDbTransaction _transaction;
private global::System.Data.OleDb.OleDbCommand[] _commandCollection;
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public SikayetlerTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected internal global::System.Data.OleDb.OleDbDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.OleDb.OleDbConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((global::System.Data.OleDb.OleDbCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal global::System.Data.OleDb.OleDbTransaction Transaction {
get {
return this._transaction;
}
set {
this._transaction = value;
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
this.CommandCollection[i].Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.DeleteCommand != null))) {
this.Adapter.DeleteCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.InsertCommand != null))) {
this.Adapter.InsertCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.UpdateCommand != null))) {
this.Adapter.UpdateCommand.Transaction = this._transaction;
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected global::System.Data.OleDb.OleDbCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitAdapter() {
this._adapter = new global::System.Data.OleDb.OleDbDataAdapter();
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "Sikayetler";
tableMapping.ColumnMappings.Add("TC_NO", "TC_NO");
tableMapping.ColumnMappings.Add("SikayetTarihi", "SikayetTarihi");
tableMapping.ColumnMappings.Add("Adi", "Adi");
tableMapping.ColumnMappings.Add("Soyadi", "Soyadi");
tableMapping.ColumnMappings.Add("SikayetNedeni", "SikayetNedeni");
tableMapping.ColumnMappings.Add("Aciklama", "Aciklama");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.InsertCommand = new global::System.Data.OleDb.OleDbCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = "INSERT INTO `Sikayetler` (`TC_NO`, `SikayetTarihi`, `Adi`, `Soyadi`, `SikayetNede" +
"ni`, `Aciklama`) VALUES (?, ?, ?, ?, ?, ?)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("TC_NO", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "TC_NO", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SikayetTarihi", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SikayetTarihi", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Adi", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Adi", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Soyadi", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Soyadi", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("SikayetNedeni", global::System.Data.OleDb.OleDbType.VarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "SikayetNedeni", global::System.Data.DataRowVersion.Current, false, null));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.OleDb.OleDbParameter("Aciklama", global::System.Data.OleDb.OleDbType.LongVarWChar, 0, global::System.Data.ParameterDirection.Input, ((byte)(0)), ((byte)(0)), "Aciklama", global::System.Data.DataRowVersion.Current, false, null));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.OleDb.OleDbConnection();
this._connection.ConnectionString = global::Belediye_Otomasyonu.Properties.Settings.Default.belediyeConnectionString1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.OleDb.OleDbCommand[1];
this._commandCollection[0] = new global::System.Data.OleDb.OleDbCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT TC_NO, SikayetTarihi, Adi, Soyadi, SikayetNedeni, Aciklama FROM Sikayetler" +
"";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
public virtual int Fill(belediyeDataSet.SikayetlerDataTable dataTable) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
public virtual belediyeDataSet.SikayetlerDataTable GetData() {
this.Adapter.SelectCommand = this.CommandCollection[0];
belediyeDataSet.SikayetlerDataTable dataTable = new belediyeDataSet.SikayetlerDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(belediyeDataSet.SikayetlerDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(belediyeDataSet dataSet) {
return this.Adapter.Update(dataSet, "Sikayetler");
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(global::System.Data.DataRow dataRow) {
return this.Adapter.Update(new global::System.Data.DataRow[] {
dataRow});
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(global::System.Data.DataRow[] dataRows) {
return this.Adapter.Update(dataRows);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(string TC_NO, string SikayetTarihi, string Adi, string Soyadi, string SikayetNedeni, string Aciklama) {
if ((TC_NO == null)) {
throw new global::System.ArgumentNullException("TC_NO");
}
else {
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TC_NO));
}
if ((SikayetTarihi == null)) {
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(SikayetTarihi));
}
if ((Adi == null)) {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Adi));
}
if ((Soyadi == null)) {
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Soyadi));
}
if ((SikayetNedeni == null)) {
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(SikayetNedeni));
}
if ((Aciklama == null)) {
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Aciklama));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.InsertCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.InsertCommand.Connection.Close();
}
}
}
}
/// <summary>
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
"esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
public partial class TableAdapterManager : global::System.ComponentModel.Component {
private UpdateOrderOption _updateOrder;
private FaturaTableAdapter _faturaTableAdapter;
private FaturaBilgileriTableAdapter _faturaBilgileriTableAdapter;
private kisibilgilerTableAdapter _kisibilgilerTableAdapter;
private PersonelTableAdapter _personelTableAdapter;
private SikayetlerTableAdapter _sikayetlerTableAdapter;
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public UpdateOrderOption UpdateOrder {
get {
return this._updateOrder;
}
set {
this._updateOrder = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
"a", "System.Drawing.Design.UITypeEditor")]
public FaturaTableAdapter FaturaTableAdapter {
get {
return this._faturaTableAdapter;
}
set {
this._faturaTableAdapter = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
"a", "System.Drawing.Design.UITypeEditor")]
public FaturaBilgileriTableAdapter FaturaBilgileriTableAdapter {
get {
return this._faturaBilgileriTableAdapter;
}
set {
this._faturaBilgileriTableAdapter = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
"a", "System.Drawing.Design.UITypeEditor")]
public kisibilgilerTableAdapter kisibilgilerTableAdapter {
get {
return this._kisibilgilerTableAdapter;
}
set {
this._kisibilgilerTableAdapter = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
"a", "System.Drawing.Design.UITypeEditor")]
public PersonelTableAdapter PersonelTableAdapter {
get {
return this._personelTableAdapter;
}
set {
this._personelTableAdapter = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
"a", "System.Drawing.Design.UITypeEditor")]
public SikayetlerTableAdapter SikayetlerTableAdapter {
get {
return this._sikayetlerTableAdapter;
}
set {
this._sikayetlerTableAdapter = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public bool BackupDataSetBeforeUpdate {
get {
return this._backupDataSetBeforeUpdate;
}
set {
this._backupDataSetBeforeUpdate = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public global::System.Data.IDbConnection Connection {
get {
if ((this._connection != null)) {
return this._connection;
}
if (((this._faturaTableAdapter != null)
&& (this._faturaTableAdapter.Connection != null))) {
return this._faturaTableAdapter.Connection;
}
if (((this._faturaBilgileriTableAdapter != null)
&& (this._faturaBilgileriTableAdapter.Connection != null))) {
return this._faturaBilgileriTableAdapter.Connection;
}
if (((this._kisibilgilerTableAdapter != null)
&& (this._kisibilgilerTableAdapter.Connection != null))) {
return this._kisibilgilerTableAdapter.Connection;
}
if (((this._personelTableAdapter != null)
&& (this._personelTableAdapter.Connection != null))) {
return this._personelTableAdapter.Connection;
}
if (((this._sikayetlerTableAdapter != null)
&& (this._sikayetlerTableAdapter.Connection != null))) {
return this._sikayetlerTableAdapter.Connection;
}
return null;
}
set {
this._connection = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int TableAdapterInstanceCount {
get {
int count = 0;
if ((this._faturaTableAdapter != null)) {
count = (count + 1);
}
if ((this._faturaBilgileriTableAdapter != null)) {
count = (count + 1);
}
if ((this._kisibilgilerTableAdapter != null)) {
count = (count + 1);
}
if ((this._personelTableAdapter != null)) {
count = (count + 1);
}
if ((this._sikayetlerTableAdapter != null)) {
count = (count + 1);
}
return count;
}
}
/// <summary>
///Update rows in top-down order.
///</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private int UpdateUpdatedRows(belediyeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
int result = 0;
if ((this._faturaTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.Fatura.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._faturaTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
if ((this._faturaBilgileriTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.FaturaBilgileri.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._faturaBilgileriTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
if ((this._kisibilgilerTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.kisibilgiler.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._kisibilgilerTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
if ((this._personelTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.Personel.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._personelTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
if ((this._sikayetlerTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.Sikayetler.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._sikayetlerTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
return result;
}
/// <summary>
///Insert rows in top-down order.
///</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private int UpdateInsertedRows(belediyeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
int result = 0;
if ((this._faturaTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.Fatura.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._faturaTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
if ((this._faturaBilgileriTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.FaturaBilgileri.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._faturaBilgileriTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
if ((this._kisibilgilerTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.kisibilgiler.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._kisibilgilerTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
if ((this._personelTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.Personel.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._personelTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
if ((this._sikayetlerTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.Sikayetler.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._sikayetlerTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
return result;
}
/// <summary>
///Delete rows in bottom-up order.
///</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private int UpdateDeletedRows(belediyeDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
int result = 0;
if ((this._sikayetlerTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.Sikayetler.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._sikayetlerTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
if ((this._personelTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.Personel.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._personelTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
if ((this._kisibilgilerTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.kisibilgiler.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._kisibilgilerTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
if ((this._faturaBilgileriTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.FaturaBilgileri.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._faturaBilgileriTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
if ((this._faturaTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.Fatura.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._faturaTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
return result;
}
/// <summary>
///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
///</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
if (((updatedRows == null)
|| (updatedRows.Length < 1))) {
return updatedRows;
}
if (((allAddedRows == null)
|| (allAddedRows.Count < 1))) {
return updatedRows;
}
global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
global::System.Data.DataRow row = updatedRows[i];
if ((allAddedRows.Contains(row) == false)) {
realUpdatedRows.Add(row);
}
}
return realUpdatedRows.ToArray();
}
/// <summary>
///Update all changes to the dataset.
///</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public virtual int UpdateAll(belediyeDataSet dataSet) {
if ((dataSet == null)) {
throw new global::System.ArgumentNullException("dataSet");
}
if ((dataSet.HasChanges() == false)) {
return 0;
}
if (((this._faturaTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._faturaTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
if (((this._faturaBilgileriTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._faturaBilgileriTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
if (((this._kisibilgilerTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._kisibilgilerTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
if (((this._personelTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._personelTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
if (((this._sikayetlerTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._sikayetlerTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
"ger TableAdapter property to a valid TableAdapter instance.");
}
bool workConnOpened = false;
if (((workConnection.State & global::System.Data.ConnectionState.Broken)
== global::System.Data.ConnectionState.Broken)) {
workConnection.Close();
}
if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
workConnection.Open();
workConnOpened = true;
}
global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
if ((workTransaction == null)) {
throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
"ctions or the current state is not allowing the transaction to begin.");
}
global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
int result = 0;
global::System.Data.DataSet backupDataSet = null;
if (this.BackupDataSetBeforeUpdate) {
backupDataSet = new global::System.Data.DataSet();
backupDataSet.Merge(dataSet);
}
try {
// ---- Prepare for update -----------
//
if ((this._faturaTableAdapter != null)) {
revertConnections.Add(this._faturaTableAdapter, this._faturaTableAdapter.Connection);
this._faturaTableAdapter.Connection = ((global::System.Data.OleDb.OleDbConnection)(workConnection));
this._faturaTableAdapter.Transaction = ((global::System.Data.OleDb.OleDbTransaction)(workTransaction));
if (this._faturaTableAdapter.Adapter.AcceptChangesDuringUpdate) {
this._faturaTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
adaptersWithAcceptChangesDuringUpdate.Add(this._faturaTableAdapter.Adapter);
}
}
if ((this._faturaBilgileriTableAdapter != null)) {
revertConnections.Add(this._faturaBilgileriTableAdapter, this._faturaBilgileriTableAdapter.Connection);
this._faturaBilgileriTableAdapter.Connection = ((global::System.Data.OleDb.OleDbConnection)(workConnection));
this._faturaBilgileriTableAdapter.Transaction = ((global::System.Data.OleDb.OleDbTransaction)(workTransaction));
if (this._faturaBilgileriTableAdapter.Adapter.AcceptChangesDuringUpdate) {
this._faturaBilgileriTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
adaptersWithAcceptChangesDuringUpdate.Add(this._faturaBilgileriTableAdapter.Adapter);
}
}
if ((this._kisibilgilerTableAdapter != null)) {
revertConnections.Add(this._kisibilgilerTableAdapter, this._kisibilgilerTableAdapter.Connection);
this._kisibilgilerTableAdapter.Connection = ((global::System.Data.OleDb.OleDbConnection)(workConnection));
this._kisibilgilerTableAdapter.Transaction = ((global::System.Data.OleDb.OleDbTransaction)(workTransaction));
if (this._kisibilgilerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
this._kisibilgilerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
adaptersWithAcceptChangesDuringUpdate.Add(this._kisibilgilerTableAdapter.Adapter);
}
}
if ((this._personelTableAdapter != null)) {
revertConnections.Add(this._personelTableAdapter, this._personelTableAdapter.Connection);
this._personelTableAdapter.Connection = ((global::System.Data.OleDb.OleDbConnection)(workConnection));
this._personelTableAdapter.Transaction = ((global::System.Data.OleDb.OleDbTransaction)(workTransaction));
if (this._personelTableAdapter.Adapter.AcceptChangesDuringUpdate) {
this._personelTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
adaptersWithAcceptChangesDuringUpdate.Add(this._personelTableAdapter.Adapter);
}
}
if ((this._sikayetlerTableAdapter != null)) {
revertConnections.Add(this._sikayetlerTableAdapter, this._sikayetlerTableAdapter.Connection);
this._sikayetlerTableAdapter.Connection = ((global::System.Data.OleDb.OleDbConnection)(workConnection));
this._sikayetlerTableAdapter.Transaction = ((global::System.Data.OleDb.OleDbTransaction)(workTransaction));
if (this._sikayetlerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
this._sikayetlerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
adaptersWithAcceptChangesDuringUpdate.Add(this._sikayetlerTableAdapter.Adapter);
}
}
//
//---- Perform updates -----------
//
if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
}
else {
result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
}
result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
//
//---- Commit updates -----------
//
workTransaction.Commit();
if ((0 < allAddedRows.Count)) {
global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
allAddedRows.CopyTo(rows);
for (int i = 0; (i < rows.Length); i = (i + 1)) {
global::System.Data.DataRow row = rows[i];
row.AcceptChanges();
}
}
if ((0 < allChangedRows.Count)) {
global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
allChangedRows.CopyTo(rows);
for (int i = 0; (i < rows.Length); i = (i + 1)) {
global::System.Data.DataRow row = rows[i];
row.AcceptChanges();
}
}
}
catch (global::System.Exception ex) {
workTransaction.Rollback();
// ---- Restore the dataset -----------
if (this.BackupDataSetBeforeUpdate) {
global::System.Diagnostics.Debug.Assert((backupDataSet != null));
dataSet.Clear();
dataSet.Merge(backupDataSet);
}
else {
if ((0 < allAddedRows.Count)) {
global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
allAddedRows.CopyTo(rows);
for (int i = 0; (i < rows.Length); i = (i + 1)) {
global::System.Data.DataRow row = rows[i];
row.AcceptChanges();
row.SetAdded();
}
}
}
throw ex;
}
finally {
if (workConnOpened) {
workConnection.Close();
}
if ((this._faturaTableAdapter != null)) {
this._faturaTableAdapter.Connection = ((global::System.Data.OleDb.OleDbConnection)(revertConnections[this._faturaTableAdapter]));
this._faturaTableAdapter.Transaction = null;
}
if ((this._faturaBilgileriTableAdapter != null)) {
this._faturaBilgileriTableAdapter.Connection = ((global::System.Data.OleDb.OleDbConnection)(revertConnections[this._faturaBilgileriTableAdapter]));
this._faturaBilgileriTableAdapter.Transaction = null;
}
if ((this._kisibilgilerTableAdapter != null)) {
this._kisibilgilerTableAdapter.Connection = ((global::System.Data.OleDb.OleDbConnection)(revertConnections[this._kisibilgilerTableAdapter]));
this._kisibilgilerTableAdapter.Transaction = null;
}
if ((this._personelTableAdapter != null)) {
this._personelTableAdapter.Connection = ((global::System.Data.OleDb.OleDbConnection)(revertConnections[this._personelTableAdapter]));
this._personelTableAdapter.Transaction = null;
}
if ((this._sikayetlerTableAdapter != null)) {
this._sikayetlerTableAdapter.Connection = ((global::System.Data.OleDb.OleDbConnection)(revertConnections[this._sikayetlerTableAdapter]));
this._sikayetlerTableAdapter.Transaction = null;
}
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
for (int i = 0; (i < adapters.Length); i = (i + 1)) {
global::System.Data.Common.DataAdapter adapter = adapters[i];
adapter.AcceptChangesDuringUpdate = true;
}
}
}
return result;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
if ((this._connection != null)) {
return true;
}
if (((this.Connection == null)
|| (inputConnection == null))) {
return true;
}
if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
return true;
}
return false;
}
/// <summary>
///Update Order Option
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public enum UpdateOrderOption {
InsertUpdateDelete = 0,
UpdateInsertDelete = 1,
}
/// <summary>
///Used to sort self-referenced table's rows
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
private global::System.Data.DataRelation _relation;
private int _childFirst;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
this._relation = relation;
if (childFirst) {
this._childFirst = -1;
}
else {
this._childFirst = 1;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
global::System.Diagnostics.Debug.Assert((row != null));
global::System.Data.DataRow root = row;
distance = 0;
global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
traversedRows[row] = row;
global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
for (
; ((parent != null)
&& (traversedRows.ContainsKey(parent) == false));
) {
distance = (distance + 1);
root = parent;
traversedRows[parent] = parent;
parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
}
if ((distance == 0)) {
traversedRows.Clear();
traversedRows[row] = row;
parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
for (
; ((parent != null)
&& (traversedRows.ContainsKey(parent) == false));
) {
distance = (distance + 1);
root = parent;
traversedRows[parent] = parent;
parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
}
}
return root;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
if (object.ReferenceEquals(row1, row2)) {
return 0;
}
if ((row1 == null)) {
return -1;
}
if ((row2 == null)) {
return 1;
}
int distance1 = 0;
global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
int distance2 = 0;
global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
if (object.ReferenceEquals(root1, root2)) {
return (this._childFirst * distance1.CompareTo(distance2));
}
else {
global::System.Diagnostics.Debug.Assert(((root1.Table != null)
&& (root2.Table != null)));
if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
return -1;
}
else {
return 1;
}
}
}
}
}
}
#pragma warning restore 1591 | 63.177151 | 1,371 | 0.605509 | [
"MIT"
] | tragonez/BelediyeYonetim | Belediye_Otomasyonu/belediyeDataSet1.Designer.cs | 589,508 | C# |
using StoreDB;
using StoreDB.Models;
using StoreDB.Repos;
using System.Collections.Generic;
namespace StoreLib
{
public class LocationService : ILocationService
{
private ILocationRepo repo;
public LocationService(ILocationRepo repo)
{
this.repo = repo;
}
public void AddLocation(Location location)
{
repo.AddLocation(location);
}
public void UpdateLocation(Location location)
{
repo.UpdateLocation(location);
}
public Location GetLocationById(int id)
{
Location location = repo.GetLocationById(id);
return location;
}
public Location GetLocationByState(string state)
{
Location location = repo.GetLocationByState(state);
return location;
}
public List<Location> GetAllLocations()
{
List<Location> locations = repo.GetAllLocations();
return locations;
}
public void DeleteLocation(Location location)
{
repo.DeleteLocation(location);
}
}
} | 22.647059 | 63 | 0.58355 | [
"MIT"
] | 201019-UiPath/WeberLindsey-Project1 | API/StoreLib/Location/LocationService.cs | 1,155 | C# |
using System;
using CryptoApisLibrary.DataTypes;
using CryptoApisLibrary.ResponseTypes.Blockchains;
namespace CryptoApisSnippets.Samples.Blockchains
{
partial class BlockchainSnippets
{
public void GenerateAddressBch()
{
var manager = new CryptoManager(ApiKey);
var response = manager.Blockchains.Address.GenerateAddress<GenerateBtcAddressResponse>(
NetworkCoin.BchMainNet);
Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage)
? "GenerateAddressBch executed successfully, " +
$"new address is {response.Payload.Address}"
: $"GenerateAddressBch error: {response.ErrorMessage}");
}
}
} | 31.714286 | 93 | 0.737237 | [
"MIT"
] | Crypto-APIs/.NET-Library | CryptoApisSnippets/Samples/Blockchains/Addresses/GenerateAddressBch.cs | 668 | C# |
using HL7Data.Contracts.Segments.Patient.Health;
using HL7Data.Models.Base;
using HL7Data.Models.Types;
namespace HL7Data.Models.Segments.Patient.Health
{
public class PatientAdverseReactionInformationSegment : BaseSegment, IPatientAdverseReactionInformationSegment
{
public override SegmentTypes SegmentType => SegmentTypes.IAM;
}
} | 32.181818 | 114 | 0.805085 | [
"MIT"
] | amenkes/HL7Parser | Models/Segments/Patient/Health/PatientAdverseReactionInformationSegment.cs | 354 | C# |
using System;
namespace _004.NumberOperations
{
class Program
{
static void Main(string[] args)
{
int N1 = int.Parse(Console.ReadLine());
int N2 = int.Parse(Console.ReadLine());
char operation = char.Parse(Console.ReadLine());
double result = 0;
switch (operation)
{
case '+':
result = N1 + N2;
Console.Write("{0} + {1} = {2}", N1, N2, result);
if (result%2==0)
Console.WriteLine(" - even");
else
Console.WriteLine(" - odd");
break;
case '-':
result = N1 - N2;
Console.Write("{0} - {1} = {2}", N1, N2, result);
if (result % 2 == 0)
Console.WriteLine(" - even");
else
Console.WriteLine(" - odd");
break;
case '*':
result = N1 * N2;
Console.Write("{0} * {1} = {2}", N1, N2, result);
if (result % 2 == 0)
Console.WriteLine(" - even");
else
Console.WriteLine(" - odd");
break;
case '/':
if (N2!=0)
{
result = N1 / (double)N2;
Console.WriteLine("{0} / {1} = {2:f2}", N1, N2, result);
}
else
Console.WriteLine("Cannot divide {0} by zero",N1);
break;
case '%':
if (N2!=0)
{
result = N1 % N2;
Console.WriteLine("{0} % {1} = {2}", N1, N2, result);
}
else
Console.WriteLine("Cannot divide {0} by zero", N1);
break;
default:
Console.WriteLine("Undefined operation");
break;
}
}
}
}
| 33.621212 | 80 | 0.328977 | [
"MIT"
] | yangra/SoftUni | ProgrammingBasics/04.ComplexConditions/003.NumberOperations/Program.cs | 2,221 | C# |
using System;
namespace ClubHouse.Domain.Models {
public class ChannelUser : BaseUserInfo {
public int Skintone { get; set; }
public bool Is_new { get; set; }
public bool Is_speaker { get; set; }
public bool Is_moderator { get; set; }
public bool Is_muted { get; set; }
public bool Is_speaking { get; set; }
public bool Raise_hands { get; set; }
public DateTimeOffset? Time_joined_as_speaker { get; set; }
public bool Is_followed_by_speaker { get; set; }
public bool Is_invited_as_speaker { get; set; }
}
}
| 35.117647 | 67 | 0.628141 | [
"MIT"
] | Zahragheaybi/ClubHouse-Windows | Domain/ClubHouse.Domain/Models/ChannelUser.cs | 599 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
internal static partial class Interop
{
internal static partial class Globalization
{
[GeneratedDllImport(Libraries.GlobalizationNative, EntryPoint = "GlobalizationNative_LoadICUData", StringMarshalling = StringMarshalling.Utf8)]
internal static partial int LoadICUData(string path);
}
}
| 33.8 | 151 | 0.771203 | [
"MIT"
] | MatthewJohn/runtime | src/libraries/Common/src/Interop/Interop.ICU.iOS.cs | 507 | C# |
namespace SqlDatabase.IO
{
internal interface IFileSystemFactory
{
IFileSystemInfo FileSystemInfoFromPath(string path);
IFileSystemInfo FromContent(string name, string content);
}
}
| 21.2 | 65 | 0.721698 | [
"MIT"
] | max-ieremenko/SqlDatabase | Sources/SqlDatabase/IO/IFileSystemFactory.cs | 214 | C# |
using Enums;
using System.Collections.ObjectModel;
using System.Diagnostics;
namespace DesktopReload.Widget
{
public class CPUListWidget : BasicWidget
{
PerformanceCounterCategory cat = new System.Diagnostics.PerformanceCounterCategory("Processor");
public ObservableCollection<string> LabelTextList { get; set; }
public CPUListWidget()
{
LabelText = "CPU List";
Type = WidgetType.CPUList;
RefreshRate = WidgetRefreshRate.None;
ViewType = WidgetViewType.LabelList;
LabelTextList = new ObservableCollection<string>()
{
"CPU1",
"CPU2",
"CPU3"
};
getData();
}
public void getData()
{
LabelTextList.Clear();
var list = cat.GetInstanceNames();
foreach (var cpu in list)
{
LabelTextList.Add(cpu);
}
}
public override void Refresh()
{
base.Refresh();
getData();
}
}
}
| 24.688889 | 104 | 0.526553 | [
"MIT"
] | bouldeterre/DesktopReload | DesktopReload/Widget/CPU/CPUListWidget.cs | 1,113 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace BasePlate01.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}
| 34.387097 | 151 | 0.581614 | [
"Unlicense"
] | usmanshamsi/base_plate_01 | BasePlate01/Properties/SETTINGS.DESIGNER.cs | 1,068 | C# |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net.Mail;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Web;
namespace CalbucciLib
{
public class Logger
{
private static readonly string[] SensitiveInfo = new[]
{
"pwd",
"pass",
"auth",
"ccnum",
"ccno",
"credit",
"token",
"card",
"ssn",
"socialsec",
"ssnum",
"secnumber"
};
public static Logger Default { get; set; }
private static Dictionary<string, int> EmailSignatureCounter { get; set; }
private static DateTime NextSignatureFlush { get; set; }
/// <summary>
/// Truncate threshold for FORMs values (default 8K)
/// </summary>
public int MaxHttpFormValueLength { get; set; }
/// <summary>
/// Truncate threshold for outputting the body content for text HTTP POST requests (default 32K)
/// </summary>
public int MaxHttpBodyLength { get; set; }
/// <summary>
/// Include File Names in the CallStack collection (doesn't affect Exception logging) (defaults to false)
/// </summary>
public bool IncludeFileNamesInCallStack { get; set; }
/// <summary>
/// Include the Session Items objects (defaults to false)
/// </summary>
public bool IncludeSessionObjects { get; set; }
/// <summary>
/// Enable callback for the log events so they can sent to DB, APIs, file, etc
/// </summary>
public List<Action<LogEvent>> LogExtensions { get; set; }
/// <summary>
/// Optional function to test if we should log or not that content
/// </summary>
public Func<LogEvent, bool> ShouldLogCallback { get; set; }
/// <summary>
/// If the logging system itself throws an exception, it calls this function
/// </summary>
public Action<Exception> InternalCrashCallback { get; set; }
/// <summary>
/// Maximum number of emails with the same callstack per hour (default 50)
/// </summary>
public static int MaxEmailPerHour { get; set; }
private MailAddress DefaultEmailAddress { get; set; }
private MailAddress FatalEmailAddress { get; set; }
public MailAddress EmailFrom { get; set; }
/// <summary>
/// Set an email address to all log information to
/// </summary>
public bool ConfirmEmailSent;
public MailAddress SendToEmailAddress
{
get { return DefaultEmailAddress; }
set
{
DefaultEmailAddress = value;
if (DefaultEmailAddress != null && SmtpClient == null)
{
SmtpClient = new SmtpClient();
}
}
}
public string SendToEmailAddressFatal
{
get { return FatalEmailAddress?.Address; }
set
{
FatalEmailAddress = value == null ? null : new MailAddress(value);
if (FatalEmailAddress != null && SmtpClient == null)
{
SmtpClient = new SmtpClient();
}
}
}
/// <summary>
/// Subject Line Prefix
/// </summary>
public string SubjectLinePrefix { get; set; }
public SmtpClient SmtpClient { get; set; }
// ============================================================
//
// CONSTRUCTORS
//
// ============================================================
static Logger()
{
Default = new Logger();
EmailSignatureCounter = new Dictionary<string, int>();
NextSignatureFlush = DateTime.UtcNow.AddHours(1);
MaxEmailPerHour = 50;
}
public Logger()
{
MaxHttpFormValueLength = 8192;
MaxHttpBodyLength = 32678;
IncludeFileNamesInCallStack = false;
IncludeSessionObjects = false;
SubjectLinePrefix = "[Log] ";
EmailFrom = new MailAddress("nobody@test.com");
}
// ============================================================
//
// PUBLIC CONFIG
//
// ============================================================
public void AddExtension(Action<LogEvent> extensionLog)
{
if (LogExtensions == null)
{
LogExtensions = new List<Action<LogEvent>>();
LogExtensions.Add(extensionLog);
}
}
// ============================================================
//
// PUBLIC LOG
//
// ============================================================
public LogEvent Error(string format, params object[] args)
{
return Error(null, format, args);
}
public LogEvent Error(Action<LogEvent> appendData, string format, params object[] args)
{
return Log(appendData, "Error", null, format, args);
}
public LogEvent Info(string format, params object[] args)
{
return Info(null, format, args);
}
public LogEvent Info(Action<LogEvent> appendData, string format, params object[] args)
{
return Log(appendData, "Info", null, format, args);
}
public LogEvent Warning(string format, params object[] args)
{
return Warning(null, format, args);
}
public LogEvent Warning(Action<LogEvent> appendData, string format, params object[] args)
{
return Log(appendData, "Warning", null, format, args);
}
public LogEvent Fatal(string format, params object[] args)
{
return Fatal(null, format, args);
}
public LogEvent Fatal(Action<LogEvent> appendData, string format, params object[] args)
{
return Log(appendData, "Fatal", null, format, args);
}
public LogEvent Exception(Exception ex, params object[] args)
{
return Exception(null, ex, args);
}
public LogEvent Exception(Action<LogEvent> appendData, Exception ex, params object[] args)
{
return Log(appendData, "Exception", ex, null, args);
}
public LogEvent PerfIssue(string format, params object[] args)
{
return PerfIssue(null, format, args);
}
public LogEvent PerfIssue(Action<LogEvent> appendData, string format, params object[] args)
{
return Log(appendData, "PerfIssue", null, format, args);
}
public LogEvent InvalidCodePath(string format, params object[] args)
{
return InvalidCodePath(null, format, args);
}
public LogEvent InvalidCodePath(Action<LogEvent> appendData, string format, params object[] args)
{
return Log(appendData, "InvalidCodePath", null, format, args);
}
// ============================================================
//
// PRIVATE
//
// ============================================================
private LogEvent Log(Action<LogEvent> appendData, string type, Exception ex, string format, params object[] args)
{
// ThreadAbortException is a special exception that happens when a thread is being shut down
if (ex != null && ex is ThreadAbortException)
return null;
LogEvent logEvent = new LogEvent(type);
bool saveArgs = true;
if (format == null)
{
if (ex != null)
{
logEvent.Message = ex.ToString().Replace("\r\n", "");
if (logEvent.Message.Length > 80)
{
logEvent.Message = logEvent.Message.Substring(0, 80) + "...";
}
}
else if (!string.IsNullOrWhiteSpace(type))
{
logEvent.Message = type;
}
else
{
logEvent.Message = "LogEvent";
}
}
else if (format.IndexOf("{0") >= 0)
{
logEvent.Message = string.Format(format, args);
saveArgs = false;
}
else
{
logEvent.Message = format;
}
if (saveArgs && args != null && args.Length > 0)
{
for (int i = 0; i < args.Length; i++)
{
logEvent.Add("Args", i.ToString(), args[i]);
}
}
var ctx = HttpContext.Current;
if (ctx != null)
{
AppendHttpContextUserInfo(logEvent, ctx);
AppendHttpRequestInfo(logEvent, ctx);
AppendHttpResponseInfo(logEvent, ctx);
AddHttpSessionInfo(logEvent, ctx);
}
logEvent.StackSignature = AppendCallStackInfo(logEvent.GetOrCreateCollection("CallStack"));
AppendThreadInfo(logEvent);
AppendProcessInfo(logEvent);
AppendComputerInfo(logEvent);
AppendException(logEvent, ex);
if (appendData != null)
{
try
{
appendData(logEvent);
}
catch (Exception ex2)
{
ReportCrash(ex2);
}
}
if (ShouldLogCallback != null)
{
if (!ShouldLogCallback(logEvent))
return null;
}
SendEmail(logEvent);
ConfirmEmailSent = true;
if (LogExtensions != null)
{
foreach (var extension in LogExtensions)
{
try
{
extension(logEvent);
}
catch (Exception ex2)
{
ReportCrash(ex2);
}
}
}
return logEvent;
}
private void SendEmail(LogEvent logEvent)
{
if (DefaultEmailAddress == null && FatalEmailAddress == null)
return;
if (SmtpClient == null)
return;
lock (typeof (Logger))
{
int emailCount = 0;
if (NextSignatureFlush >= logEvent.EventDateUtc)
{
if (EmailSignatureCounter.TryGetValue(logEvent.StackSignature, out emailCount))
{
if (emailCount >= MaxEmailPerHour)
return;
}
}
else
{
EmailSignatureCounter = new Dictionary<string, int>();
NextSignatureFlush = DateTime.UtcNow.AddHours(1);
}
EmailSignatureCounter[logEvent.StackSignature] = emailCount + 1;
}
try
{
MailMessage mm = new MailMessage();
if (DefaultEmailAddress != null)
{
mm.To.Add(DefaultEmailAddress);
}
if (logEvent.Type == "Fatal" && FatalEmailAddress != null)
{
mm.To.Add(FatalEmailAddress);
}
if (mm.To.Count > 0)
{
string messageTruncated = logEvent.Message;
if (messageTruncated != null && messageTruncated.Length > 50)
messageTruncated = messageTruncated.Substring(0, 50) + "...";
// remove any control character and convert all whistespaces to a space
if (messageTruncated != null)
{
StringBuilder sb = new StringBuilder(messageTruncated.Length);
foreach (char c in messageTruncated)
{
if (char.IsControl(c) || char.IsWhiteSpace(c))
sb.Append(' ');
else
sb.Append(c);
}
messageTruncated = sb.ToString();
}
mm.Subject = SubjectLinePrefix + logEvent.Type + ": " + messageTruncated + " (" + logEvent.StackSignature + ")";
mm.From = EmailFrom;
mm.Body = logEvent.Htmlify();
mm.IsBodyHtml = true;
lock (SmtpClient)
{
SmtpClient.Send(mm);
}
}
}
catch (Exception ex2)
{
ReportCrash(ex2);
}
}
private void AppendException(LogEvent logEvent, Exception ex)
{
if (ex == null)
return;
AppendException(logEvent.GetOrCreateCollection("Exception"), ex);
}
private void AppendException(Dictionary<string, object> info, Exception ex)
{
if (ex == null)
return;
info["Message"] = ex.Message;
if (ex.Data.Count > 0)
info["Data"] = ex.Data;
info["HResult"] = ex.HResult.ToString("X8");
info["Source"] = ex.Source;
info["StackTrace"] = ex.StackTrace;
info["Type"] = ex.GetType().ToString();
if (ex.InnerException != null)
{
var innerInfo = new Dictionary<string, object>();
info["InnerException"] = innerInfo;
AppendException(innerInfo, ex.InnerException);
if(ex.InnerException.InnerException != null)
{
var innerInnerInfo = new Dictionary<string, object>();
info["Inner.InnerException"] = innerInnerInfo;
AppendException(innerInnerInfo, ex.InnerException.InnerException);
}
}
}
private void AppendHttpRequestInfo(LogEvent logEvent, HttpContext ctx)
{
try
{
if (ctx.WebSocketNegotiatedProtocol != null)
return;
var req = ctx.Request;
var cat = logEvent.GetOrCreateCollection("HttpRequest");
cat["ContentLength"] = req.ContentLength;
cat["ContentType"] = req.ContentType;
cat["HttpMethod"] = req.HttpMethod;
cat["IsAuthenticated"] = req.IsAuthenticated;
cat["Path"] = req.Path;
cat["PathInfo"] = req.PathInfo;
cat["Referrer"] = req.UrlReferrer;
cat["RequestType"] = req.RequestType;
cat["RawUrl"] = req.RawUrl;
cat["TotalBytes"] = req.TotalBytes;
cat["UserHostAddress"] = req.UserHostAddress;
cat["Url"] = req.Url;
cat["UserAgent"] = req.UserAgent;
var cookies = new Dictionary<string, string>();
foreach (var cookieName in req.Unvalidated.Cookies.AllKeys)
{
var cookie = req.Cookies[cookieName];
if (cookie == null)
continue;
cookies[cookieName] = cookie.Value;
}
cat["Cookies"] = cookies;
for (int i = 0; i < req.Unvalidated.Headers.Keys.Count; i++)
{
string key = req.Headers.GetKey(i);
string[] vals = req.Headers.GetValues(i);
if (vals == null || vals.Length == 0)
{
cat["Header:" + key] = "";
}
else if (vals.Length == 1)
{
cat["Header:" + key] = vals[0];
}
else
{
for (int t = 0; t < vals.Length; t++)
{
cat["Header(" + t + "):" + key] = vals[t];
}
}
}
if (MaxHttpFormValueLength > 0)
{
var form = req.Unvalidated.Form;
if (form.Keys.Count > 0)
{
var formInfo = new Dictionary<string, string>(form.Keys.Count);
cat["Form"] = formInfo;
for (int i = 0; i < form.Keys.Count; i++)
{
string key = form.GetKey(i);
string keyName = "Form:" + key;
string[] vals = form.GetValues(i);
if (vals != null && vals.Length != 0 && !string.IsNullOrWhiteSpace(vals[0]) && IsSensitiveItem(key))
{
if (vals.Length == 1)
{
formInfo[keyName] = string.Format("[removed for security] Length: {0}", vals[0].Length);
}
else
{
for (int j = 0; j < vals.Length; j++)
{
formInfo[keyName + ":" + j] = string.Format("[removed for security] Length: {0}",
vals[j] != null ? vals[j].Length : 0);
}
}
continue;
}
if (vals == null || vals.Length == 0)
{
formInfo[keyName] = "";
}
else if (vals.Length == 1)
{
formInfo[keyName] = vals[0] != null
? (vals[0].Length > MaxHttpFormValueLength ? vals[0].Substring(0, Int32.MaxValue) + "..." : vals[0])
: "";
}
else
{
for (int t = 0; t < vals.Length; t++)
{
formInfo[keyName + ":" + t] = vals[t] != null
? (vals[t].Length > MaxHttpFormValueLength ? vals[t].Substring(0, Int32.MaxValue) + "..." : vals[t])
: "";
}
}
}
}
}
var files = req.Unvalidated.Files;
if (files.Count > 0)
{
var fileInfo = new Dictionary<string, object>(files.Count);
cat["Files"] = fileInfo;
for (int i = 0; i < files.Count; i++)
{
var pf = req.Files[i];
fileInfo["File:" + i + ":FileName"] = pf.FileName;
fileInfo["File:" + i + ":ContentType"] = pf.ContentType;
fileInfo["File:" + i + ":ContentLength"] = pf.ContentLength;
}
}
string contentType = req.ContentType.ToLower();
if (MaxHttpBodyLength > 0)
{
if (contentType.Contains("application/json")
|| contentType.Contains("text/")
|| contentType.Contains("html/")
|| contentType.Contains("application/xml")
|| contentType.Contains("+xml"))
{
try
{
using (var sr = new StreamReader(req.InputStream))
{
if (req.InputStream.CanSeek)
req.InputStream.Position = 0;
string bodyContent = sr.ReadToEnd();
if (bodyContent.Length > MaxHttpBodyLength)
bodyContent = bodyContent.Substring(0, MaxHttpBodyLength) + "...";
cat["Body"] = bodyContent;
}
}
catch (Exception ex)
{
ReportCrash(ex);
}
}
}
}
catch (Exception ex)
{
ReportCrash(ex);
}
}
private void AppendHttpResponseInfo(LogEvent logEvent, HttpContext ctx)
{
try
{
if (ctx.WebSocketNegotiatedProtocol != null)
return;
HttpResponse resp = ctx.Response;
var cat = logEvent.GetOrCreateCollection("HttpResponse");
cat["Buffer"] = resp.Buffer;
cat["BufferOutput"] = resp.BufferOutput;
cat["CacheControl"] = resp.CacheControl;
cat["Charset"] = resp.Charset;
cat["ContentEncoding"] = resp.ContentEncoding.EncodingName;
cat["ContentType"] = resp.ContentType;
cat["Expires"] = resp.Expires;
cat["ExpiresAbsolute"] = resp.ExpiresAbsolute;
cat["IsClientConnected"] = resp.IsClientConnected;
cat["RedirectLocation"] = resp.RedirectLocation;
cat["Status"] = resp.Status;
cat["StatusCode"] = resp.StatusCode;
cat["StatusDescription"] = resp.StatusDescription;
cat["SupressContent"] = resp.SuppressContent;
}
catch (Exception ex)
{
ReportCrash(ex);
}
}
private void AddHttpSessionInfo(LogEvent logEvent, HttpContext ctx)
{
var cat = logEvent.GetOrCreateCollection("HttpSession");
try
{
if (ctx.WebSocketNegotiatedProtocol != null)
return;
var session = ctx.Session;
if (session == null)
return;
cat["SessionID"] = session.SessionID;
cat["IsNewSession"] = session.IsNewSession;
if (IncludeSessionObjects)
{
for (int i = 0; i < session.Count; i++)
{
string key = session.Keys[i];
object value = session[key];
if (IsSensitiveItem(key))
value = "[removed for security] Length: " + (value != null ? (value.ToString().Length) : 0);
cat[key] = value;
}
}
}
catch (Exception ex)
{
ReportCrash(ex);
}
}
private void AppendHttpContextUserInfo(LogEvent logEvent, HttpContext ctx)
{
try
{
var user = ctx.User;
if (user == null || !user.Identity.IsAuthenticated)
return;
var cat = logEvent.GetOrCreateCollection("HttpUser");
cat["IsAuthenticated"] = user.Identity.IsAuthenticated;
cat["Name"] = user.Identity.Name;
cat["AuthenticationType"] = user.Identity.AuthenticationType;
}
catch (Exception ex)
{
ReportCrash(ex);
}
}
private string AppendCallStackInfo(Dictionary<string, object> info, StackTrace stack = null)
{
if (stack == null)
{
stack = new StackTrace(2, true);
}
var frames = stack.GetFrames();
if (frames == null)
return null;
bool skipLoggerClass = true;
int count = 0;
// The signatureHash is a hash for the first 4 stack frames that are not System.* or Microsoft.*
int sigCount = 0;
int signatureHash = 0;
foreach (var frame in frames)
{
var method = frame.GetMethod();
var methodType = method.DeclaringType ?? method.ReflectedType;
if (skipLoggerClass)
{
if (methodType == typeof(Logger) || methodType == typeof(PerfLogger))
{
continue;
}
skipLoggerClass = false;
}
string methodName = methodType != null ? methodType.FullName + "." + method.Name : "?";
int lineNumber = frame.GetFileLineNumber();
if (sigCount < 4 && !methodName.StartsWith("System.", StringComparison.CurrentCultureIgnoreCase)
&& !methodName.StartsWith("Microsoft.", StringComparison.CurrentCultureIgnoreCase))
{
signatureHash ^= (methodName + lineNumber).GetHashCode();
sigCount++;
}
string frameLine;
if (IncludeFileNamesInCallStack)
{
string fileName = frame.GetFileName();
frameLine = string.Format("{0} #{1} @ {2}", methodName, lineNumber,
fileName);
}
else
{
frameLine = string.Format("{0} #{1}", methodName, lineNumber);
}
info[count.ToString()] = frameLine;
count++;
}
return signatureHash.ToString("x");
}
private void AppendThreadInfo(LogEvent logEvent)
{
var thread = Thread.CurrentThread;
logEvent.Add("Thread", "ThreadId", thread.ManagedThreadId);
}
private void AppendProcessInfo(LogEvent logEvent)
{
var p = Process.GetCurrentProcess();
var assembly = Assembly.GetEntryAssembly() ?? Assembly.GetCallingAssembly();
var collection = logEvent.GetOrCreateCollection("Process");
collection["AssemblyVersion"] = assembly.GetName().Version.ToString();
collection["CurrentDirectory"] = Environment.CurrentDirectory;
collection["WorkingSet"] = p.WorkingSet64;
collection["PeakWorkingSet64"] = p.PeakWorkingSet64;
collection["ProcessName"] = p.ProcessName;
collection["StartTime"] = p.StartTime;
collection["ThreadCount"] = p.Threads.Count;
}
private void AppendComputerInfo(LogEvent logEvent)
{
var collection = logEvent.GetOrCreateCollection("Computer");
collection["Name"] = Environment.MachineName;
collection["OSVersion"] = Environment.OSVersion.ToString();
collection["Version"] = Environment.Version.ToString();
}
private static bool IsSensitiveItem(string itemName)
{
if (string.IsNullOrWhiteSpace(itemName))
return false;
return SensitiveInfo.Any(si => itemName.IndexOf(si, StringComparison.CurrentCultureIgnoreCase) >= 0);
}
private void ReportCrash(Exception ex)
{
if (Debugger.IsAttached)
Debugger.Break();
if (InternalCrashCallback != null)
{
try
{
InternalCrashCallback(ex);
}
catch (Exception)
{
// Oh well
}
}
}
// ============================================================
//
// STATIC shortcuts
//
// ============================================================
public static LogEvent LogError(Action<LogEvent> appendData, string format, params object[] args)
{
return Default.Error(appendData, format, args);
}
public static LogEvent LogError(string format, params object[] args)
{
return LogError(null, format, args);
}
public static LogEvent LogWarning(Action<LogEvent> appendData, string format, params object[] args)
{
return Default.Warning(appendData, format, args);
}
public static LogEvent LogWarning(string format, params object[] args)
{
return LogWarning(null, format, args);
}
public static LogEvent LogInfo(Action<LogEvent> appendData, string format, params object[] args)
{
return Default.Info(appendData, format, args);
}
public static LogEvent LogInfo(string format, params object[] args)
{
return LogInfo(null, format, args);
}
public static LogEvent LogFatal(Action<LogEvent> appendData, string format, params object[] args)
{
return Default.Fatal(appendData, format, args);
}
public static LogEvent LogFatal(string format, params object[] args)
{
return LogFatal(null, format, args);
}
public static LogEvent LogException(Action<LogEvent> appendData, Exception ex, params object[] args)
{
return Default.Exception(appendData, ex, args);
}
public static LogEvent LogException(Exception ex, params object[] args)
{
return Default.Exception(ex, args);
}
public static LogEvent LogPerfIssue(Action<LogEvent> appendData, string format, params object[] args)
{
return Default.PerfIssue(appendData, format, args);
}
public static LogEvent LogPerfIssue(string format, params object[] args)
{
return Default.PerfIssue(format, args);
}
public static LogEvent LogInvalidCodePath(Action<LogEvent> appendData, string format, params object[] args)
{
return Default.InvalidCodePath(appendData, format, args);
}
public static LogEvent LogInvalidCodePath(string format, params object[] args)
{
return Default.InvalidCodePath(format, args);
}
}
}
| 34.426843 | 140 | 0.453314 | [
"MIT"
] | calbucci/CalbucciLib.Logger | src/CalbucciLib.Logger/Logger.cs | 31,296 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using Bright.Serialization;
using System.Collections.Generic;
using System.Text.Json;
namespace cfg.error
{
public abstract partial class ErrorStyle : Bright.Config.BeanBase
{
public ErrorStyle(JsonElement _json)
{
PostInit();
}
public ErrorStyle()
{
PostInit();
}
public static ErrorStyle DeserializeErrorStyle(JsonElement _json)
{
switch (_json.GetProperty("$type").GetString())
{
case "ErrorStyleTip": return new error.ErrorStyleTip(_json);
case "ErrorStyleMsgbox": return new error.ErrorStyleMsgbox(_json);
case "ErrorStyleDlgOk": return new error.ErrorStyleDlgOk(_json);
case "ErrorStyleDlgOkCancel": return new error.ErrorStyleDlgOkCancel(_json);
default: throw new SerializationException();
}
}
public virtual void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public virtual void TranslateText(System.Func<string, string, string> translator)
{
}
public override string ToString()
{
return "{ "
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}
| 25.145161 | 88 | 0.576652 | [
"MIT"
] | HFX-93/luban_examples | Projects/Csharp_DotNet5_json/Gen/error/ErrorStyle.cs | 1,559 | C# |
using DialogueSystem.GamePlay;
using Module;
using UICore;
using UnityEngine;
using UnityEngine.UI;
public class MainGameView : BaseUIPanel
{
[SerializeField] private Button _optionButton;
[SerializeField] private Button _questionnaireButton;
[SerializeField] private Button _startNewDialogueButton;
public override void Init()
{
base.Init();
_optionButton.onClick.AddListener(delegate { CenterEvent.Instance.Raise(GlobalEventID.OpenOptionView); });
_questionnaireButton.onClick.AddListener( delegate { CenterEvent.Instance.Raise(GlobalEventID.OpenQuestionnaireView); });
_startNewDialogueButton.onClick.AddListener( delegate { StoryLine.Instance.ContinueStoryLine(); });
}
} | 36.9 | 129 | 0.760163 | [
"MIT"
] | FeiFeinb/BrightTown | Assets/Scripts/UI/GameMain/MainGameView.cs | 740 | C# |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Linq;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE;
using Microsoft.CodeAnalysis.CSharp.Test.Utilities;
using Microsoft.CodeAnalysis.Test.Utilities;
using Roslyn.Test.Utilities;
using Xunit;
namespace Microsoft.CodeAnalysis.CSharp.UnitTests.Emit
{
public class OptionalArgumentsTests : CSharpTestBase
{
[WorkItem(529684, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529684")]
[Fact]
public void TestDuplicateConstantAttributesMetadata()
{
var ilSource =
@".assembly extern System {}
.class public C
{
.method public static object F0([opt] object o)
{
.param [1]
.custom instance void [System]System.Runtime.InteropServices.DefaultParameterValueAttribute::.ctor(object) = {string('s')} // [DefaultParameterValue('s')]
ldarg.0
ret
}
.method public static object F1([opt] object o)
{
.param [1]
.custom instance void [System]System.Runtime.InteropServices.DefaultParameterValueAttribute::.ctor(object) = {string('s')} // [DefaultParameterValue('s')]
.custom instance void [System]System.Runtime.CompilerServices.DecimalConstantAttribute::.ctor(uint8, uint8, uint32, uint32, uint32) = ( 01 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 ) // [DecimalConstant(2)]
.custom instance void [System]System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 03 00 00 00 00 00 00 00 00 00 ) // [DateTimeConstant(3)]
ldarg.0
ret
}
.method public static object F2([opt] object o)
{
.param [1]
.custom instance void [System]System.Runtime.CompilerServices.DecimalConstantAttribute::.ctor(uint8, uint8, uint32, uint32, uint32) = ( 01 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 ) // [DecimalConstant(2)]
.custom instance void [System]System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 03 00 00 00 00 00 00 00 00 00 ) // [DateTimeConstant(3)]
.custom instance void [System]System.Runtime.InteropServices.DefaultParameterValueAttribute::.ctor(object) = {string('s')} // [DefaultParameterValue('s')]
ldarg.0
ret
}
.method public static object F3([opt] object o)
{
.param [1]
.custom instance void [System]System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 03 00 00 00 00 00 00 00 00 00 ) // [DateTimeConstant(3)]
.custom instance void [System]System.Runtime.InteropServices.DefaultParameterValueAttribute::.ctor(object) = {string('s')} // [DefaultParameterValue('s')]
.custom instance void [System]System.Runtime.CompilerServices.DecimalConstantAttribute::.ctor(uint8, uint8, uint32, uint32, uint32) = ( 01 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 ) // [DecimalConstant(2)]
ldarg.0
ret
}
.method public static int32 F4([opt] int32 i)
{
.param [1]
.custom instance void [System]System.Runtime.InteropServices.DefaultParameterValueAttribute::.ctor(object) = ( 01 00 08 01 00 00 00 00 00 ) // [DefaultParameterValue(1)]
.custom instance void [System]System.Runtime.InteropServices.DefaultParameterValueAttribute::.ctor(object) = ( 01 00 08 02 00 00 00 00 00 ) // [DefaultParameterValue(2)]
.custom instance void [System]System.Runtime.InteropServices.DefaultParameterValueAttribute::.ctor(object) = ( 01 00 08 03 00 00 00 00 00 ) // [DefaultParameterValue(3)]
ldarg.0
ret
}
.method public static valuetype [mscorlib]System.DateTime F5([opt] valuetype [mscorlib]System.DateTime d)
{
.param [1]
.custom instance void [System]System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 01 00 00 00 00 00 00 00 00 00 ) // [DateTimeConstant(3)]
.custom instance void [System]System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 02 00 00 00 00 00 00 00 00 00 ) // [DateTimeConstant(3)]
.custom instance void [System]System.Runtime.CompilerServices.DateTimeConstantAttribute::.ctor(int64) = ( 01 00 03 00 00 00 00 00 00 00 00 00 ) // [DateTimeConstant(3)]
ldarg.0
ret
}
.method public static valuetype [mscorlib]System.Decimal F6([opt] valuetype [mscorlib]System.Decimal d)
{
.param [1]
.custom instance void [System]System.Runtime.CompilerServices.DecimalConstantAttribute::.ctor(uint8, uint8, uint32, uint32, uint32) = ( 01 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 ) // [DecimalConstant(2)]
.custom instance void [System]System.Runtime.CompilerServices.DecimalConstantAttribute::.ctor(uint8, uint8, uint32, uint32, uint32) = ( 01 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 ) // [DecimalConstant(2)]
.custom instance void [System]System.Runtime.CompilerServices.DecimalConstantAttribute::.ctor(uint8, uint8, uint32, uint32, uint32) = ( 01 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 00 00 ) // [DecimalConstant(2)]
ldarg.0
ret
}
}";
var csharpSource =
@"class P
{
static void Main()
{
Report(C.F0());
Report(C.F1());
Report(C.F2());
Report(C.F3());
Report(C.F4());
Report(C.F5().Ticks);
Report(C.F6());
}
static void Report(object o)
{
System.Console.WriteLine(""{0}: {1}"", o.GetType(), o);
}
}";
var compilation = CreateCompilationWithCustomILSource(csharpSource, ilSource, options: TestOptions.DebugExe);
compilation.VerifyDiagnostics();
CompileAndVerify(compilation, expectedOutput:
@"System.Reflection.Missing: System.Reflection.Missing
System.DateTime: 01/01/0001 00:00:00
System.DateTime: 01/01/0001 00:00:00
System.DateTime: 01/01/0001 00:00:00
System.Int32: 0
System.Int64: 3
System.Decimal: 3");
}
[WorkItem(529684, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529684")]
[Fact]
public void TestDuplicateConstantAttributesSameValues()
{
var source1 =
@"using System.Runtime.CompilerServices;
public class C
{
public object F([DecimalConstant(0, 0, 0, 0, 1)]decimal o = 1)
{
return o;
}
public object this[decimal a, [DecimalConstant(0, 0, 0, 0, 2)]decimal b = 2]
{
get { return b; }
set { }
}
public static object D(decimal o)
{
return o;
}
}
public delegate object D([DecimalConstant(0, 0, 0, 0, 3)]decimal o = 3);
";
var comp1 = CreateStandardCompilation(source1, references: new[] { SystemRef }, options: TestOptions.DebugDll);
comp1.VerifyDiagnostics();
CompileAndVerify(comp1, sourceSymbolValidator: module =>
{
var type = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
VerifyDefaultValueAttribute(type.GetMember<MethodSymbol>("F").Parameters[0], "DecimalConstantAttribute", 1, false);
VerifyDefaultValueAttribute(type.GetMember<PropertySymbol>("this[]").Parameters[1], "DecimalConstantAttribute", 2, false);
VerifyDefaultValueAttribute(type.GetMember<MethodSymbol>("get_Item").Parameters[1], "DecimalConstantAttribute", 2, false);
VerifyDefaultValueAttribute(type.GetMember<MethodSymbol>("set_Item").Parameters[1], "DecimalConstantAttribute", 2, false);
type = module.GlobalNamespace.GetMember<NamedTypeSymbol>("D");
VerifyDefaultValueAttribute(type.GetMember<MethodSymbol>("Invoke").Parameters[0], "DecimalConstantAttribute", 3, false);
VerifyDefaultValueAttribute(type.GetMember<MethodSymbol>("BeginInvoke").Parameters[0], "DecimalConstantAttribute", 3, false);
});
var source2 =
@"class P
{
static void Main()
{
var c = new C();
Report(c.F());
Report(c[0]);
D d = C.D;
Report(d());
}
static void Report(object o)
{
System.Console.WriteLine(o);
}
}";
var comp2a = CreateStandardCompilation(
source2,
references: new[] { SystemRef, new CSharpCompilationReference(comp1) },
options: TestOptions.DebugExe);
comp2a.VerifyDiagnostics();
CompileAndVerify(comp2a, expectedOutput:
@"1
2
3");
var comp2b = CreateStandardCompilation(
source2,
references: new[] { SystemRef, MetadataReference.CreateFromStream(comp1.EmitToStream()) },
options: TestOptions.DebugExe);
comp2b.VerifyDiagnostics();
CompileAndVerify(comp2b, expectedOutput:
@"1
2
3");
}
[WorkItem(529684, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529684")]
[Fact]
public void TestDuplicateConstantAttributesSameValues_PartialMethods()
{
var source =
@"using System.Runtime.CompilerServices;
partial class C
{
static partial void F(decimal o = 2);
}
partial class C
{
static partial void F([DecimalConstant(0, 0, 0, 0, 2)]decimal o) { }
}";
var comp = CreateStandardCompilation(source, references: new[] { SystemRef });
comp.VerifyDiagnostics();
CompileAndVerify(comp, sourceSymbolValidator: module =>
{
var type = module.GlobalNamespace.GetMember<NamedTypeSymbol>("C");
VerifyDefaultValueAttribute(type.GetMember<MethodSymbol>("F").Parameters[0], "DecimalConstantAttribute", 2, false);
});
}
private static void VerifyDefaultValueAttribute(ParameterSymbol parameter, string expectedAttributeName, object expectedDefault, bool hasDefault)
{
var attributes = parameter.GetAttributes();
if (expectedAttributeName == null)
{
Assert.Equal(attributes.Length, 0);
}
else
{
Assert.Equal(attributes.Length, 1);
var attribute = attributes[0];
var argument = attribute.ConstructorArguments.Last();
Assert.Equal(expectedAttributeName, attribute.AttributeClass.Name);
Assert.Equal(expectedDefault, argument.Value);
Assert.Equal(hasDefault, ((Cci.IParameterDefinition)parameter).HasDefaultValue);
}
if (hasDefault)
{
Assert.Equal(expectedDefault, parameter.ExplicitDefaultValue);
}
}
[WorkItem(529684, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529684")]
[Fact]
public void TestDuplicateConstantAttributesDifferentValues()
{
var source =
@"using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
interface I
{
void F1([DefaultParameterValue(1)]int o = 2);
void F2([DefaultParameterValue(1)]decimal o = 2);
void F4([DecimalConstant(0, 0, 0, 0, 1)]decimal o = 2);
void F6([DateTimeConstant(1), DefaultParameterValue(1), DecimalConstant(0, 0, 0, 0, 1)]int o = 1);
void F7([DateTimeConstant(2), DecimalConstant(0, 0, 0, 0, 2), DefaultParameterValue(2)]decimal o = 2);
object this[int a, [DefaultParameterValue(1)]int o = 2] { get; set; }
object this[[DefaultParameterValue(0), DecimalConstant(0, 0, 0, 0, 0), DateTimeConstant(0)]int o] { get; set; }
}
delegate void D([DecimalConstant(0, 0, 0, 0, 3)]decimal b = 4);
";
CreateStandardCompilation(source, references: new[] { SystemRef }).VerifyDiagnostics(
// (5,14): error CS1745: Cannot specify default parameter value in conjunction with DefaultParameterAttribute or OptionalAttribute
// void F1([DefaultParameterValue(1)]int o = 2);
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "DefaultParameterValue").WithLocation(5, 14),
// (6,14): error CS1745: Cannot specify default parameter value in conjunction with DefaultParameterAttribute or OptionalAttribute
// void F2([DefaultParameterValue(1)]decimal o = 2);
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "DefaultParameterValue").WithLocation(6, 14),
// (6,51): error CS8017: The parameter has multiple distinct default values.
// void F2([DefaultParameterValue(1)]decimal o = 2);
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "2").WithLocation(6, 51),
// (7,57): error CS8017: The parameter has multiple distinct default values.
// void F4([DecimalConstant(0, 0, 0, 0, 1)]decimal o = 2);
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "2").WithLocation(7, 57),
// (8,35): error CS1745: Cannot specify default parameter value in conjunction with DefaultParameterAttribute or OptionalAttribute
// void F6([DateTimeConstant(1), DefaultParameterValue(1), DecimalConstant(0, 0, 0, 0, 1)]int o = 1);
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "DefaultParameterValue").WithLocation(8, 35),
// (8,61): error CS8017: The parameter has multiple distinct default values.
// void F6([DateTimeConstant(1), DefaultParameterValue(1), DecimalConstant(0, 0, 0, 0, 1)]int o = 1);
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DecimalConstant(0, 0, 0, 0, 1)").WithLocation(8, 61),
// (8,100): error CS8017: The parameter has multiple distinct default values.
// void F6([DateTimeConstant(1), DefaultParameterValue(1), DecimalConstant(0, 0, 0, 0, 1)]int o = 1);
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "1").WithLocation(8, 100),
// (9,35): error CS8017: The parameter has multiple distinct default values.
// void F7([DateTimeConstant(2), DecimalConstant(0, 0, 0, 0, 2), DefaultParameterValue(2)]decimal o = 2);
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DecimalConstant(0, 0, 0, 0, 2)").WithLocation(9, 35),
// (9,67): error CS1745: Cannot specify default parameter value in conjunction with DefaultParameterAttribute or OptionalAttribute
// void F7([DateTimeConstant(2), DecimalConstant(0, 0, 0, 0, 2), DefaultParameterValue(2)]decimal o = 2);
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "DefaultParameterValue").WithLocation(9, 67),
// (9,104): error CS8017: The parameter has multiple distinct default values.
// void F7([DateTimeConstant(2), DecimalConstant(0, 0, 0, 0, 2), DefaultParameterValue(2)]decimal o = 2);
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "2").WithLocation(9, 104),
// (10,25): error CS1745: Cannot specify default parameter value in conjunction with DefaultParameterAttribute or OptionalAttribute
// object this[int a, [DefaultParameterValue(1)]int o = 2] { get; set; }
Diagnostic(ErrorCode.ERR_DefaultValueUsedWithAttributes, "DefaultParameterValue").WithLocation(10, 25),
// (10,58): error CS8017: The parameter has multiple distinct default values.
// object this[int a, [DefaultParameterValue(1)]int o = 2] { get; set; }
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "2").WithLocation(10, 58),
// (11,44): error CS8017: The parameter has multiple distinct default values.
// object this[[DefaultParameterValue(0), DecimalConstant(0, 0, 0, 0, 0), DateTimeConstant(0)]int o] { get; set; }
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DecimalConstant(0, 0, 0, 0, 0)").WithLocation(11, 44),
// (11,76): error CS8017: The parameter has multiple distinct default values.
// object this[[DefaultParameterValue(0), DecimalConstant(0, 0, 0, 0, 0), DateTimeConstant(0)]int o] { get; set; }
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DateTimeConstant(0)").WithLocation(11, 76),
// (5,47): error CS8017: The parameter has multiple distinct default values.
// void F1([DefaultParameterValue(1)]int o = 2);
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "2").WithLocation(5, 47),
// (13,61): error CS8017: The parameter has multiple distinct default values.
// delegate void D([DecimalConstant(0, 0, 0, 0, 3)]decimal b = 4);
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "4").WithLocation(13, 61)
);
}
[WorkItem(529684, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529684")]
[Fact]
public void TestDuplicateConstantAttributesDifferentValues_PartialMethods()
{
var source =
@"using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
partial class C
{
partial void F1([DefaultParameterValue(1)]int o) {}
partial void F9([DefaultParameterValue(0)]int o);
}
partial class C
{
partial void F1(int o = 2);
partial void F9([DecimalConstant(0, 0, 0, 0, 0), DateTimeConstant(0)]int o) {}
}";
CreateStandardCompilation(source, references: new[] { SystemRef }).VerifyDiagnostics(
// (8,22): error CS8017: The parameter has multiple distinct default values.
// partial void F9([DefaultParameterValue(0)]int o);
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DefaultParameterValue(0)"),
// (10,29): error CS8017: The parameter has multiple distinct default values.
// partial void F1(int o = 2);
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "2"),
// (11,54): error CS8017: The parameter has multiple distinct default values.
// partial void F9([DecimalConstant(0, 0, 0, 0, 0), DateTimeConstant(0)]int o) {}
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DateTimeConstant(0)"));
}
/// <summary>
/// Should not report differences if either value is bad.
/// </summary>
[WorkItem(529684, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529684")]
[Fact]
public void TestDuplicateConstantAttributesDifferentValues_BadValue()
{
var source =
@"using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
interface I
{
void M1([DefaultParameterValue(typeof(C)), DecimalConstantAttribute(0, 0, 0, 0, 0)] decimal o);
void M2([DefaultParameterValue(0), DecimalConstantAttribute(0, 0, 0, 0, typeof(C))] decimal o);
void M3([DefaultParameterValue(0), DecimalConstantAttribute(0, 0, 0, 0, 0)] decimal o);
}";
CreateStandardCompilation(source, references: new[] { SystemRef }).VerifyDiagnostics(
// (7,40): error CS8017: The parameter has multiple distinct default values.
// void M3([DefaultParameterValue(0), DecimalConstantAttribute(0, 0, 0, 0, 0)] decimal o);
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DecimalConstantAttribute(0, 0, 0, 0, 0)").WithLocation(7, 40),
// (6,84): error CS0246: The type or namespace name 'C' could not be found (are you missing a using directive or an assembly reference?)
// void M2([DefaultParameterValue(0), DecimalConstantAttribute(0, 0, 0, 0, typeof(C))] decimal o);
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C").WithArguments("C").WithLocation(6, 84),
// (5,43): error CS0246: The type or namespace name 'C' could not be found (are you missing a using directive or an assembly reference?)
// void M1([DefaultParameterValue(typeof(C)), DecimalConstantAttribute(0, 0, 0, 0, 0)] decimal o);
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "C").WithArguments("C").WithLocation(5, 43),
// (5,48): error CS8017: The parameter has multiple distinct default values.
// void M1([DefaultParameterValue(typeof(C)), DecimalConstantAttribute(0, 0, 0, 0, 0)] decimal o);
Diagnostic(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, "DecimalConstantAttribute(0, 0, 0, 0, 0)").WithLocation(5, 48)
);
}
[WorkItem(529684, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529684")]
[Fact]
public void TestExplicitConstantAttributesOnFields_Errors()
{
var source =
@"
using System;
using System.Runtime.CompilerServices;
class C
{
[DecimalConstant(0, 0, 0, 0, 0)] public decimal F0 = 1;
[DateTimeConstant(0)] public DateTime F1 = default(DateTime);
[DecimalConstant(0, 0, 0, 0, 0), DecimalConstant(0, 0, 0, 0, 0)] public DateTime F2 = default(DateTime);
[DateTimeConstant(0), DateTimeConstant(0)] public DateTime F3 = default(DateTime);
[DecimalConstant(0, 0, 0, 0, 0), DecimalConstant(0, 0, 0, 0, 1)] public decimal F4 = 0;
[DateTimeConstant(1), DateTimeConstant(0)] public DateTime F5 = default(DateTime);
[DecimalConstant(0, 0, 0, 0, 0), DateTimeConstant(0)] public DateTime F6 = default(DateTime);
[DecimalConstant(0, 0, 0, 0, 0), DateTimeConstant(0)] public decimal F7 = 0;
[DecimalConstant(0, 0, 0, 0, 0), DateTimeConstant(0)] public int F8 = 0;
[DecimalConstant(0, 0, 0, 0, 0)] public const int F9 = 0;
[DateTimeConstant(0)] public const int F10 = 0;
[DateTimeConstant(0)] public const decimal F12 = 0;
[DecimalConstant(0, 0, 0, 0, 0)] public const decimal F14 = 1;
}";
var comp = CreateStandardCompilation(source, references: new[] { SystemRef });
comp.VerifyDiagnostics(
// (11,38): error CS0579: Duplicate 'DecimalConstant' attribute
// [DecimalConstant(0, 0, 0, 0, 0), DecimalConstant(0, 0, 0, 0, 0)] public DateTime F2 = default(DateTime);
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "DecimalConstant").WithArguments("DecimalConstant"),
// (13,27): error CS0579: Duplicate 'DateTimeConstant' attribute
// [DateTimeConstant(0), DateTimeConstant(0)] public DateTime F3 = default(DateTime);
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "DateTimeConstant").WithArguments("DateTimeConstant"),
// (15,38): error CS0579: Duplicate 'DecimalConstant' attribute
// [DecimalConstant(0, 0, 0, 0, 0), DecimalConstant(0, 0, 0, 0, 1)] public decimal F4 = 0;
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "DecimalConstant").WithArguments("DecimalConstant"),
// (17,27): error CS0579: Duplicate 'DateTimeConstant' attribute
// [DateTimeConstant(1), DateTimeConstant(0)] public DateTime F5 = default(DateTime);
Diagnostic(ErrorCode.ERR_DuplicateAttribute, "DateTimeConstant").WithArguments("DateTimeConstant"),
// (19,38): error CS8027: The field has multiple distinct constant values.
// [DecimalConstant(0, 0, 0, 0, 0), DateTimeConstant(0)] public DateTime F6 = default(DateTime);
Diagnostic(ErrorCode.ERR_FieldHasMultipleDistinctConstantValues, "DateTimeConstant(0)"),
// (21,38): error CS8027: The field has multiple distinct constant values.
// [DecimalConstant(0, 0, 0, 0, 0), DateTimeConstant(0)] public decimal F7 = 0;
Diagnostic(ErrorCode.ERR_FieldHasMultipleDistinctConstantValues, "DateTimeConstant(0)"),
// (23,38): error CS8027: The field has multiple distinct constant values.
// [DecimalConstant(0, 0, 0, 0, 0), DateTimeConstant(0)] public int F8 = 0;
Diagnostic(ErrorCode.ERR_FieldHasMultipleDistinctConstantValues, "DateTimeConstant(0)"),
// (25,6): error CS8027: The field has multiple distinct constant values.
// [DecimalConstant(0, 0, 0, 0, 0)] public const int F9 = 0;
Diagnostic(ErrorCode.ERR_FieldHasMultipleDistinctConstantValues, "DecimalConstant(0, 0, 0, 0, 0)"),
// (27,6): error CS8027: The field has multiple distinct constant values.
// [DateTimeConstant(0)] public const int F10 = 0;
Diagnostic(ErrorCode.ERR_FieldHasMultipleDistinctConstantValues, "DateTimeConstant(0)"),
// (29,6): error CS8027: The field has multiple distinct constant values.
// [DateTimeConstant(0)] public const decimal F12 = 0;
Diagnostic(ErrorCode.ERR_FieldHasMultipleDistinctConstantValues, "DateTimeConstant(0)"),
// (31,6): error CS8027: The field has multiple distinct constant values.
// [DecimalConstant(0, 0, 0, 0, 0)] public const decimal F14 = 1;
Diagnostic(ErrorCode.ERR_FieldHasMultipleDistinctConstantValues, "DecimalConstant(0, 0, 0, 0, 0)")
);
}
[WorkItem(529684, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529684")]
[Fact]
public void TestExplicitConstantAttributesOnFields_Valid()
{
var source =
@"
using System;
using System.Runtime.CompilerServices;
class C
{
[DecimalConstantAttribute(0, 128, 0, 0, 7)] public const decimal F15 = -7;
}";
var comp = CreateStandardCompilation(source, references: new[] { SystemRef });
CompileAndVerify(comp, symbolValidator: module =>
{
var field = (PEFieldSymbol)module.GlobalNamespace.GetTypeMember("C").GetField("F15");
var attribute = ((PEModuleSymbol)module).GetCustomAttributesForToken(field.Handle).Single();
Assert.Equal("System.Runtime.CompilerServices.DecimalConstantAttribute", attribute.AttributeClass.ToTestDisplayString());
});
}
}
}
| 55.427039 | 219 | 0.665608 | [
"Apache-2.0"
] | JieCarolHu/roslyn | src/Compilers/CSharp/Test/Emit/Emit/OptionalArgumentsTests.cs | 25,831 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;
namespace Service3
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo { Title = "Service3", Version = "v1" });
});
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseSwagger();
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "Service3 v1"));
}
app.UseHttpsRedirection();
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
}
| 29.966667 | 107 | 0.606785 | [
"MIT"
] | MarkoMajamaki/istio_demo | services/Service3/Startup.cs | 1,798 | C# |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Text;
namespace TFABot
{
static public class clsExtenstions
{
static Regex UTCMatch = new Regex(@"(?<=UTC)\s{0,}[\+\-]\d*");
static clsExtenstions()
{
}
public static bool TimeBetween(this DateTime datetime, TimeSpan start, TimeSpan end)
{
// convert datetime to a TimeSpan
TimeSpan now = datetime.TimeOfDay;
// see if start comes before end
if (start < end) return start <= now && now <= end;
// start is after end, so do the inverse comparison
return !(end < now && now < start);
}
public static DateTime ToAbvTimeZone(this DateTime date,String abvTimeZone)
{
abvTimeZone = abvTimeZone.Trim().ToUpper();
if (abvTimeZone == "UTC") return TimeZoneInfo.ConvertTimeToUtc(date);
var match = UTCMatch.Match(abvTimeZone);
if (match.Success)
{
int offset = int.Parse(match.Value);
return DateTime.UtcNow.AddHours(offset);
}
return TimeZoneInfo.ConvertTimeBySystemTimeZoneId(date, abvTimeZone);
}
public static string ToDHMDisplay(this TimeSpan ts)
{
return $"{ts.Days}d {ts.Hours}h {ts.Minutes}m";
}
public static string ToHMSDisplay(this TimeSpan ts)
{
return $"{(int)ts.TotalHours}h {ts.Minutes}m {ts.Seconds}s";
}
public static string ToMSDisplay(this TimeSpan ts)
{
return $"{(int)ts.TotalMinutes}m {ts.Seconds}s";
}
public static IEnumerable<T> DistinctBy<T, TKey>(this IEnumerable<T> enumerable, Func<T, TKey> keySelector)
{
return enumerable.GroupBy(keySelector).Select(grp => grp.First());
}
public static string[] SplitAfter(this string text, int len)
{
List<string> textOut = new List<string>();
int pt1 = 0;
int pt2 = len;
while (pt1 < text.Length)
{
pt2 = text.IndexOf('\n',pt2);
if (pt2 == -1) pt2 = text.Length - 1;
textOut.Add(text.Substring(pt1,pt2-pt1));
pt1 = pt2 + 1;
pt2 = pt1 + len;
if (pt2 >= text.Length) pt2 = text.Length;
}
return textOut.ToArray();
}
}
}
| 30.988636 | 115 | 0.506784 | [
"MIT"
] | patlacroix/TFA-Bot | TFA-Bot/clsExtenstions.cs | 2,729 | C# |
using System;
namespace ImageSquirrel.DataSources.FolderData
{
/// <summary>
/// Represents a file search pattern.
/// </summary>
public class SearchPattern
{
/// <summary>
/// Instantiates a <see cref="SearchPattern"/> instance using the supplied parameters.
/// </summary>
/// <param name="pattern">
/// The filter string for this pattern.
/// </param>
/// <param name="option">
/// The depth which searches associated with this pattern should be performed for.
/// </param>
public SearchPattern(string pattern, SearchOption? option = null)
{
this.Pattern = pattern ?? throw new ArgumentNullException(nameof(pattern));
this.Option = option;
}
/// <summary>
/// The filter string for this pattern.
/// </summary>
public string Pattern { get; set; }
/// <summary>
/// The depth which searches associated with this pattern should be performed for.
/// </summary>
public SearchOption? Option { get; set; }
}
}
| 31.111111 | 94 | 0.575893 | [
"MIT"
] | ltnublet/ImageSquirrel | ImageSquirrel.DataSources.FolderData/SearchPattern.cs | 1,122 | C# |
using System;
using System.Text;
using System.Threading.Tasks;
using AsyncAwaitBestPractices;
using Microsoft.Azure.Devices.Client;
using Newtonsoft.Json;
namespace XamarinIoTWorkshop
{
public static class IoTDeviceService
{
readonly static WeakEventManager<string> _ioTDeviceServiceFailedEventManager = new WeakEventManager<string>();
static DeviceClient? _deviceClient;
static IoTDeviceService() => IotHubSettings.DeviceConnectionStringChanged += HandleDeviceConnectionStringChanged;
public static event EventHandler<string> IoTDeviceServiceFailed
{
add => _ioTDeviceServiceFailedEventManager.AddEventHandler(value);
remove => _ioTDeviceServiceFailedEventManager.RemoveEventHandler(value);
}
public static async Task SendMessage<T>(T data)
{
if (data is null)
return;
try
{
var jsonData = JsonConvert.SerializeObject(data);
using var eventMessage = new Message(Encoding.UTF8.GetBytes(jsonData));
await SendEvent(eventMessage).ConfigureAwait(false);
}
catch (Exception e)
{
AppCenterService.Report(e);
OnIoTDeviceServiceFailed(e.Message);
}
}
static DeviceClient GetDeviceClient() => _deviceClient ??= DeviceClient.CreateFromConnectionString(IotHubSettings.DeviceConnectionString);
static async ValueTask SendEvent(Message eventMessage)
{
if (!IotHubSettings.IsSendDataToAzureEnabled)
return;
var deviceClient = GetDeviceClient();
await deviceClient.SendEventAsync(eventMessage).ConfigureAwait(false);
AppCenterService.TrackEvent("IoT Message Sent");
}
static void OnIoTDeviceServiceFailed(string message)
{
AppCenterService.TrackEvent("IoT Device Service Failed", "Message", message);
_ioTDeviceServiceFailedEventManager.HandleEvent(null, message, nameof(IoTDeviceServiceFailed));
}
static void HandleDeviceConnectionStringChanged(object sender, EventArgs e) => _deviceClient = null;
}
} | 34.523077 | 146 | 0.66533 | [
"MIT"
] | brminnick/XamarinIoTWorkshop | Source/XamarinIoTWorkshop/Services/IoTDeviceService.cs | 2,246 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MDPlayer.form
{
public partial class frmSegaPCM : Form
{
public bool isClosed = false;
public int x = -1;
public int y = -1;
public frmMain parent = null;
private int frameSizeW = 0;
private int frameSizeH = 0;
private int chipID = 0;
private int zoom = 1;
private MDChipParams.SegaPcm newParam = null;
private MDChipParams.SegaPcm oldParam = null;
private FrameBuffer frameBuffer = new FrameBuffer();
public frmSegaPCM(frmMain frm, int chipID, int zoom, MDChipParams.SegaPcm newParam, MDChipParams.SegaPcm oldParam)
{
parent = frm;
this.chipID = chipID;
this.zoom = zoom;
InitializeComponent();
this.newParam = newParam;
this.oldParam = oldParam;
frameBuffer.Add(pbScreen, Properties.Resources.planeSEGAPCM, null, zoom);
screenInit();
update();
}
public void update()
{
frameBuffer.Refresh(null);
}
protected override bool ShowWithoutActivation
{
get
{
return true;
}
}
private void frmSegaPCM_FormClosed(object sender, FormClosedEventArgs e)
{
if (WindowState == FormWindowState.Normal)
{
parent.setting.location.PosSegaPCM[chipID] = Location;
}
else
{
parent.setting.location.PosSegaPCM[chipID] = RestoreBounds.Location;
}
isClosed = true;
}
private void frmSegaPCM_Load(object sender, EventArgs e)
{
this.Location = new Point(x, y);
frameSizeW = this.Width - this.ClientSize.Width;
frameSizeH = this.Height - this.ClientSize.Height;
changeZoom();
}
public void changeZoom()
{
this.MaximumSize = new System.Drawing.Size(frameSizeW + Properties.Resources.planeSEGAPCM.Width * zoom, frameSizeH + Properties.Resources.planeSEGAPCM.Height * zoom);
this.MinimumSize = new System.Drawing.Size(frameSizeW + Properties.Resources.planeSEGAPCM.Width * zoom, frameSizeH + Properties.Resources.planeSEGAPCM.Height * zoom);
this.Size = new System.Drawing.Size(frameSizeW + Properties.Resources.planeSEGAPCM.Width * zoom, frameSizeH + Properties.Resources.planeSEGAPCM.Height * zoom);
frmSegaPCM_Resize(null, null);
}
private void frmSegaPCM_Resize(object sender, EventArgs e)
{
}
protected override void WndProc(ref Message m)
{
if (parent != null)
{
parent.windowsMessage(ref m);
}
try { base.WndProc(ref m); }
catch (Exception ex)
{
log.ForcedWrite(ex);
}
}
private void pbScreen_MouseClick(object sender, MouseEventArgs e)
{
//int px = e.Location.X / zoom;
int py = e.Location.Y / zoom;
int ch = (py / 8) - 1;
if (ch < 0) return;
if (ch < 16)
{
if (e.Button == MouseButtons.Left)
{
parent.SetChannelMask(EnmChip.SEGAPCM, chipID, ch);
return;
}
for (ch = 0; ch < 16; ch++) parent.ResetChannelMask(EnmChip.SEGAPCM, chipID, ch);
return;
}
}
public void screenInit()
{
bool SEGAPCMType = (chipID == 0) ? parent.setting.SEGAPCMType.UseScci : parent.setting.SEGAPCMSType.UseScci;
int tp = SEGAPCMType ? 1 : 0;
for (int ch = 0; ch < 16; ch++)
{
int o = -1;
DrawBuff.Volume(frameBuffer, 256, 8 + ch * 8, 1, ref o, 0, tp);
o = -1;
DrawBuff.Volume(frameBuffer, 256, 8 + ch * 8, 2, ref o, 0, tp);
for (int ot = 0; ot < 12 * 8; ot++)
{
int kx = Tables.kbl[(ot % 12) * 2] + ot / 12 * 28;
int kt = Tables.kbl[(ot % 12) * 2 + 1];
DrawBuff.drawKbn(frameBuffer, 32 + kx, ch * 8 + 8, kt, tp);
}
DrawBuff.drawFont8(frameBuffer, 296, ch * 8 + 8, 1, " ");
DrawBuff.drawPanType2P(frameBuffer, 24, ch * 8 + 8, 0, tp);
DrawBuff.ChSegaPCM_P(frameBuffer, 0, 8 + ch * 8, ch, false, tp);
}
}
public void screenChangeParams()
{
//MDSound.segapcm.segapcm_state segapcmState = Audio.GetSegaPCMRegister(chipID);
//if (segapcmState != null && segapcmState.ram != null && segapcmState.rom != null)
//{
// for (int ch = 0; ch < 16; ch++)
// {
// int l = segapcmState.ram[ch * 8 + 2] & 0x7f;
// int r = segapcmState.ram[ch * 8 + 3] & 0x7f;
// int dt = segapcmState.ram[ch * 8 + 7];
// double ml = dt / 256.0;
// int ptrRom = segapcmState.ptrRom + ((segapcmState.ram[ch * 8 + 0x86] & segapcmState.bankmask) << segapcmState.bankshift);
// uint addr = (uint)((segapcmState.ram[ch * 8 + 0x85] << 16) | (segapcmState.ram[ch * 8 + 0x84] << 8) | segapcmState.low[ch]);
// int vdt = 0;
// if (ptrRom + ((addr >> 8) & segapcmState.rgnmask) < segapcmState.rom.Length)
// {
// vdt = Math.Abs((sbyte)(segapcmState.rom[ptrRom + ((addr >> 8) & segapcmState.rgnmask)]) - 0x80);
// }
// byte end = (byte)(segapcmState.ram[ch * 8 + 6] + 1);
// if ((segapcmState.ram[ch * 8 + 0x86] & 1) != 0) vdt = 0;
// if ((addr >> 16) == end)
// {
// if ((segapcmState.ram[ch * 8 + 0x86] & 2) == 0)
// ml = 0;
// }
// newParam.channels[ch].volumeL = Math.Min(Math.Max((l * vdt) >> 8, 0), 19);
// newParam.channels[ch].volumeR = Math.Min(Math.Max((r * vdt) >> 8, 0), 19);
// if (newParam.channels[ch].volumeL == 0 && newParam.channels[ch].volumeR == 0)
// {
// ml = 0;
// }
// newParam.channels[ch].note = (ml == 0 || vdt == 0) ? -1 : (common.searchSegaPCMNote(ml));
// newParam.channels[ch].pan = (r >> 3) * 0x10 + (l >> 3);
// }
//}
byte[] segapcmReg = Audio.GetSEGAPCMRegister(chipID);
bool[] segapcmKeyOn = Audio.GetSEGAPCMKeyOn(chipID);
if (segapcmReg != null)
{
for (int ch = 0; ch < 16; ch++)
{
int l = segapcmReg[ch * 8 + 2] & 0x7f;
int r = segapcmReg[ch * 8 + 3] & 0x7f;
int dt = segapcmReg[ch * 8 + 7];
double ml = dt / 256.0;
if (segapcmKeyOn[ch])
{
newParam.channels[ch].note = Common.searchSegaPCMNote(ml);
newParam.channels[ch].volumeL = Math.Min(Math.Max((l * 1) >> 1, 0), 19);
newParam.channels[ch].volumeR = Math.Min(Math.Max((r * 1) >> 1, 0), 19);
}
else
{
newParam.channels[ch].volumeL -= newParam.channels[ch].volumeL > 0 ? 1 : 0;
newParam.channels[ch].volumeR -= newParam.channels[ch].volumeR > 0 ? 1 : 0;
if(newParam.channels[ch].volumeL==0 && newParam.channels[ch].volumeR == 0)
{
newParam.channels[ch].note = -1;
}
}
newParam.channels[ch].pan = ((l >> 3) & 0xf) | (((r >> 3) & 0xf) << 4);
segapcmKeyOn[ch] = false;
}
}
}
public void screenDrawParams()
{
int tp = ((chipID == 0) ? parent.setting.SEGAPCMType.UseScci : parent.setting.SEGAPCMSType.UseScci) ? 1 : 0;
for (int c = 0; c < 16; c++)
{
MDChipParams.Channel orc = oldParam.channels[c];
MDChipParams.Channel nrc = newParam.channels[c];
DrawBuff.Volume(frameBuffer, 256, 8 + c * 8, 1, ref orc.volumeL, nrc.volumeL, tp);
DrawBuff.Volume(frameBuffer, 256, 8 + c * 8, 2, ref orc.volumeR, nrc.volumeR, tp);
DrawBuff.KeyBoard(frameBuffer, c, ref orc.note, nrc.note, tp);
DrawBuff.PanType2(frameBuffer, c, ref orc.pan, nrc.pan, tp);
DrawBuff.ChSegaPCM(frameBuffer, c, ref orc.mask, nrc.mask, tp);
}
}
}
}
| 37.116 | 178 | 0.481194 | [
"MIT"
] | BouKiCHi/MDPlayer | MDPlayer/MDPlayer/form/frmSegaPCM.cs | 9,281 | C# |
using System;
using System.Threading;
using System.Threading.Tasks;
using CircuitBreaker.Net.Exceptions;
namespace CircuitBreaker.Net.Sample
{
public class Program
{
public static void Main()
{
var externalService = new ExternalService();
var circuitBreaker = new CircuitBreaker(
TaskScheduler.Default,
maxFailures: 2,
invocationTimeout: TimeSpan.FromMilliseconds(10),
circuitResetTimeout: TimeSpan.FromMilliseconds(1000));
TryExecute(circuitBreaker, externalService.Get);
TryExecute(circuitBreaker, () => Thread.Sleep(100));
TryExecute(circuitBreaker, externalService.Get);
TryExecuteAsync(circuitBreaker, externalService.GetAsync).Wait();
TryExecuteAsync(circuitBreaker, () => Task.Delay(100)).Wait();
TryExecuteAsync(circuitBreaker, externalService.GetAsync).Wait();
}
private static void TryExecute(ICircuitBreaker circuitBreaker, Action action)
{
try
{
circuitBreaker.Execute(action);
}
catch (CircuitBreakerOpenException)
{
Console.WriteLine("CircuitBreakerOpenException");
}
catch (CircuitBreakerTimeoutException)
{
Console.WriteLine("CircuitBreakerTimeoutException");
}
catch (Exception)
{
Console.WriteLine("Exception");
}
}
private static async Task TryExecuteAsync(ICircuitBreaker circuitBreaker, Func<Task> action)
{
try
{
await circuitBreaker.ExecuteAsync(action);
}
catch (CircuitBreakerOpenException)
{
Console.WriteLine("CircuitBreakerOpenException");
}
catch (CircuitBreakerTimeoutException)
{
Console.WriteLine("CircuitBreakerTimeoutException");
}
catch (Exception)
{
Console.WriteLine("Exception");
}
}
}
}
| 30.486111 | 100 | 0.563554 | [
"MIT"
] | alexandrnikitin/CircuitBreaker.Net | samples/CircuitBreaker.Net.Sample/Program.cs | 2,197 | C# |
using ConsoleTables;
using Microsoft.AspNetCore.Mvc.Infrastructure;
using Newtonsoft.Json;
using RoutesList.Build.Services.StaticFileBuilder;
using RoutesList.Interfaces;
using RoutesList.Build.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
using System;
using System.ComponentModel.DataAnnotations;
using RoutesList.Build.Enums;
using RoutesList.Build.Extensions;
using System.Linq;
namespace RoutesList.Services
{
public class TableBuilder : ITableBuilder
{
private IRoutes _routes;
private IBuilder _builder;
private IActionDescriptorCollectionProvider _actionDescriptorCollectionProvider;
private IList<RoutesInformationModel> ListRoutes { get; set; } = new List<RoutesInformationModel>();
public TableBuilder(
IActionDescriptorCollectionProvider collectionProvider, IRoutes routes, IBuilder builder
) {
_actionDescriptorCollectionProvider = collectionProvider;
_routes = routes;
_builder = builder;
}
public async Task<string> AsyncGenerateTable(bool toJson = false, RoutesListOptions options = null)
{
ConsoleTable table = new ConsoleTable();
IList<string> headers = new List<string>();
ListRoutes = _routes.getRoutesInformation(_actionDescriptorCollectionProvider);
if (!String.IsNullOrEmpty(ListRoutes[0].ViewEnginePath) || !String.IsNullOrEmpty(ListRoutes[0].RelativePath)) {
foreach (var headerName in EnumExtension.GetListOfDescription<TableHeaderPageActionDescriptor>()) {
headers.Add(headerName);
}
table.AddColumn(headers);
}
if (!String.IsNullOrEmpty(ListRoutes[0].Controller_name)) {
foreach (var headerName in EnumExtension.GetListOfDescription<TableHeaderControllerActionDescriptor>()) {
headers.Add(headerName);
}
table.AddColumn(headers);
}
if (toJson) {
string serialize = String.Empty;
if (IsCompiledPageActionDescriptor()) {
serialize = JsonConvert.SerializeObject(
ListRoutes.Select(x => {
return new {
x.RelativePath,
x.ViewEnginePath,
x.Display_name,
};
})
);
}
if (IsControllerActionDescriptor()) {
serialize = JsonConvert.SerializeObject(
ListRoutes.Select(x => {
return new {
x.Display_name,
x.Controller_name,
x.Template,
x.Action_name,
x.Method_name,
};
})
);
}
return await Task.FromResult(serialize);
}
if (!String.IsNullOrEmpty(ListRoutes[0].ViewEnginePath) || !String.IsNullOrEmpty(ListRoutes[0].RelativePath)) {
foreach (var route in ListRoutes) {
table.AddRow(route.Display_name, route.ViewEnginePath, route.RelativePath);
}
}
if (!string.IsNullOrEmpty(ListRoutes[0].Controller_name)) {
foreach (var route in ListRoutes) {
table.AddRow(route.Method_name, route.Template, route.Controller_name, route.Action_name, route.Display_name);
}
}
_builder.Build(table, options);
return await Task.FromResult(_builder.Result);
}
private bool IsControllerActionDescriptor()
{
List<bool> result = new List<bool>();
foreach (var route in ListRoutes) {
result.Add(route.IsCompiledPageActionDescriptor == false);
}
return result.TrueForAll(x => x);
}
private bool IsCompiledPageActionDescriptor()
{
List<bool> result = new List<bool>();
foreach (var route in ListRoutes) {
result.Add(route.IsCompiledPageActionDescriptor == true);
}
return result.TrueForAll(x => x);
}
}
}
| 36.496 | 130 | 0.547567 | [
"MIT"
] | JanoPL/Routeslist | src/RoutesList.Build/Services/TableBuilder.cs | 4,564 | C# |
using System.Text;
using GraphicsComposerLib.SVG.Paths.Segments;
namespace GraphicsComposerLib.SVG.Paths
{
public abstract class SvgSegmentsPathCommand<T> : SvgPathCommand where T : ISvgPathSegment
{
public abstract char CommandSymbol { get; }
public bool IsRelative { get; set; }
public bool IsAbsolute
{
get { return !IsRelative; }
set { IsRelative = !value; }
}
public SvgPathSegmentsList<T> Segments { get; }
= SvgPathSegmentsList<T>.Create();
public override string ValueText
{
get
{
var composer = new StringBuilder();
composer
.Append(CommandSymbol)
.Append(' ')
.Append(Segments.ValueText);
return composer.ToString();
}
}
}
} | 25.166667 | 94 | 0.53532 | [
"MIT"
] | ga-explorer/GMac | GraphicsComposerLib/GraphicsComposerLib/SVG/Paths/SvgSegmentsPathCommand.cs | 908 | C# |
using Zpp.ZppSimulator;
namespace Zpp.Test.Integration_Tests.Verification
{
public class AbstractVerification: AbstractTest
{
protected AbstractVerification() : base(initDefaultTestConfig: false)
{
}
protected void InitThisTest(string testConfiguration)
{
InitTestScenario(testConfiguration);
IZppSimulator zppSimulator = new ZppSimulator.impl.ZppSimulator();
// TODO: set to true once dbPersist() has an acceptable time and and enable ReloadTransactionData
zppSimulator.StartPerformanceStudy(false);
// IDbTransactionData dbTransactionData =
// ZppConfiguration.CacheManager.ReloadTransactionData();
}
}
} | 31.583333 | 109 | 0.664908 | [
"Apache-2.0"
] | pascalschumann/Master-4.0 | Zpp/Test/Integration_Tests/Verification/AbstractVerification.cs | 758 | C# |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using RepoDb.Enumerations;
using RepoDb.Exceptions;
using RepoDb.UnitTests.CustomObjects;
using System;
namespace RepoDb.UnitTests.StatementBuilders
{
[TestClass]
public class BaseStatementBuilderCreateQueryTest
{
[TestInitialize]
public void Initialize()
{
StatementBuilderMapper.Add<BaseStatementBuilderDbConnection>(new CustomBaseStatementBuilder(), true);
StatementBuilderMapper.Add<NonHintsSupportingBaseStatementBuilderDbConnection>(new CustomNonHintsSupportingBaseStatementBuilder(), true);
}
#region SubClasses
private class BaseStatementBuilderDbConnection : CustomDbConnection { }
private class NonHintsSupportingBaseStatementBuilderDbConnection : CustomDbConnection { }
#endregion
[TestMethod]
public void TestBaseStatementBuilderCreateQuery()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<BaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = "Table";
var fields = Field.From(new[] { "Field1", "Field2", "Field3" });
// Act
var actual = statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: fields);
var expected = "SELECT [Field1], [Field2], [Field3] FROM [Table] ;";
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod]
public void TestBaseStatementBuilderCreateQueryWithQuotedTableSchema()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<BaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = "[dbo].[Table]";
var fields = Field.From(new[] { "Field1", "Field2", "Field3" });
// Act
var actual = statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: fields);
var expected = "SELECT [Field1], [Field2], [Field3] FROM [dbo].[Table] ;";
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod]
public void TestBaseStatementBuilderCreateQueryWithUnquotedTableSchema()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<BaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = "dbo.Table";
var fields = Field.From(new[] { "Field1", "Field2", "Field3" });
// Act
var actual = statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: fields);
var expected = "SELECT [Field1], [Field2], [Field3] FROM [dbo].[Table] ;";
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod]
public void TestBaseStatementBuilderCreateQueryWithWhereExpression()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<BaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = "Table";
var fields = Field.From(new[] { "Field1", "Field2", "Field3" });
var where = new QueryGroup(new QueryField("Id", 1));
// Act
var actual = statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: fields,
where: where);
var expected = $"" +
$"SELECT [Field1], [Field2], [Field3] " +
$"FROM [Table] " +
$"WHERE ([Id] = @Id) ;";
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod]
public void TestBaseStatementBuilderCreateQueryWithOrderBy()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<BaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = "Table";
var fields = Field.From(new[] { "Field1", "Field2", "Field3" });
var orderBy = OrderField.Parse(new { Field1 = Order.Ascending, Field2 = Order.Descending });
// Act
var actual = statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: fields,
orderBy: orderBy);
var expected = $"" +
$"SELECT [Field1], [Field2], [Field3] " +
$"FROM [Table] " +
$"ORDER BY [Field1] ASC, [Field2] DESC ;";
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod]
public void TestBaseStatementBuilderCreateQueryWithTop()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<BaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = "Table";
var fields = Field.From(new[] { "Field1", "Field2", "Field3" });
var top = 100;
// Act
var actual = statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: fields,
top: top);
var expected = "SELECT TOP (100) [Field1], [Field2], [Field3] FROM [Table] ;";
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod]
public void TestBaseStatementBuilderCreateQueryWithHints()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<BaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = "Table";
var fields = Field.From(new[] { "Field1", "Field2", "Field3" });
var hints = "WITH (NOLOCK)";
// Act
var actual = statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: fields,
hints: hints);
var expected = "SELECT [Field1], [Field2], [Field3] FROM [Table] WITH (NOLOCK) ;";
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod]
public void TestBaseStatementBuilderCreateQueryWithWhereAndWithOrderByAndWithTopAndWithHints()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<BaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = "Table";
var fields = Field.From(new[] { "Field1", "Field2", "Field3" });
var where = new QueryGroup(new QueryField("Id", 1));
var orderBy = OrderField.Parse(new { Field1 = Order.Ascending, Field2 = Order.Descending });
var top = 100;
var hints = "WITH (NOLOCK)";
// Act
var actual = statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: fields,
where: where,
orderBy: orderBy,
top: top,
hints: hints);
var expected = $"" +
$"SELECT TOP (100) [Field1], [Field2], [Field3] " +
$"FROM [Table] WITH (NOLOCK) " +
$"WHERE ([Id] = @Id) " +
$"ORDER BY [Field1] ASC, [Field2] DESC ;";
// Assert
Assert.AreEqual(expected, actual);
}
[TestMethod, ExpectedException(typeof(NullReferenceException))]
public void ThrowExceptionOnBaseStatementBuilderCreateQueryIfThereAreNoFields()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<BaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = "Table";
// Act
statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: null);
}
[TestMethod, ExpectedException(typeof(NullReferenceException))]
public void ThrowExceptionOnBaseStatementBuilderCreateQueryIfTheTableIsNull()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<BaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = (string)null;
var fields = Field.From(new[] { "Field1", "Field2", "Field3" });
// Act
statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: fields);
}
[TestMethod, ExpectedException(typeof(NullReferenceException))]
public void ThrowExceptionOnBaseStatementBuilderCreateQueryIfTheTableIsEmpty()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<BaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = "";
var fields = Field.From(new[] { "Field1", "Field2", "Field3" });
// Act
statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: fields);
}
[TestMethod, ExpectedException(typeof(NullReferenceException))]
public void ThrowExceptionOnBaseStatementBuilderCreateQueryIfTheTableIsWhitespace()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<BaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = " ";
var fields = Field.From(new[] { "Field1", "Field2", "Field3" });
// Act
statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: fields);
}
[TestMethod, ExpectedException(typeof(NotSupportedException))]
public void ThrowExceptionOnBaseStatementBuilderCreateQueryIfTheHintsAreNotSupported()
{
// Setup
var statementBuilder = StatementBuilderMapper.Get<NonHintsSupportingBaseStatementBuilderDbConnection>();
var queryBuilder = new QueryBuilder();
var tableName = "Table";
var fields = Field.From(new[] { "Field1", "Field2", "Field3" });
// Act
statementBuilder.CreateQuery(queryBuilder: queryBuilder,
tableName: tableName,
fields: fields,
hints: "Hints");
}
}
}
| 38.761566 | 149 | 0.57657 | [
"Apache-2.0"
] | RepoDb/RepoDb | RepoDb.Core/RepoDb.Tests/RepoDb.UnitTests/StatementBuilders/CreateQueryTest.cs | 10,894 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
namespace TabularCsv
{
public class PrefaceEndDetector
{
public string Separator { get; set; }
private Configuration Configuration { get; }
private List<string> ExpectedColumnHeaders { get; } = new List<string>();
public PrefaceEndDetector(Configuration configuration)
{
Configuration = configuration;
if (string.IsNullOrEmpty(Configuration.PrefaceEndsWith)
&& string.IsNullOrEmpty(Configuration.PrefaceEndsBefore)
&& Configuration.PrefaceRowCount == 0)
{
ExpectedColumnHeaders = Configuration
.GetColumnDefinitions()
.Where(c => c.HasNamedColumn)
.Select(c => c.ColumnHeader)
.Distinct()
.ToList();
}
}
public bool IsFirstHeaderLine(string line)
{
if (string.IsNullOrWhiteSpace(line))
return false;
if (!string.IsNullOrEmpty(Configuration.PrefaceEndsBefore) && line.StartsWith(Configuration.PrefaceEndsBefore, StringComparison.CurrentCultureIgnoreCase))
return true;
if (ExpectedColumnHeaders.Any())
{
var columns = line
.Split(Separator.ToCharArray())
.Select(s => s.Trim());
return ExpectedColumnHeaders.All(headerName => columns.Contains(headerName));
}
return false;
}
public bool IsLastPrefaceLine(string line)
{
return !string.IsNullOrEmpty(Configuration.PrefaceEndsWith) && line.StartsWith(Configuration.PrefaceEndsWith, StringComparison.CurrentCultureIgnoreCase);
}
}
}
| 33 | 166 | 0.584416 | [
"Apache-2.0"
] | AquaticInformatics/tabular-field-data-plugin | src/TabularCsv/PrefaceEndDetector.cs | 1,850 | C# |
// -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// -------------------------------------------------------------------------------------------------
using FellowOakDicom;
namespace Microsoft.Health.Dicom.Core.Messages.Store
{
public sealed class StoreResponse
{
public StoreResponse(StoreResponseStatus status, DicomDataset responseDataset)
{
Status = status;
Dataset = responseDataset;
}
public StoreResponseStatus Status { get; }
public DicomDataset Dataset { get; }
}
}
| 33.173913 | 101 | 0.500655 | [
"MIT"
] | ChimpPACS/dicom-server | src/Microsoft.Health.Dicom.Core/Messages/Store/StoreResponse.cs | 765 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Xunit;
namespace System.Text.Tests
{
// GetCharCount(System.Byte[],System.Int32,System.Int32)
public class DecoderGetCharCount3
{
#region Private Fields
private const int c_SIZE_OF_ARRAY = 127;
private readonly RandomDataGenerator _generator = new RandomDataGenerator();
#endregion
#region Positive Test Cases
// PosTest1: Call GetCharCount with ASCII decoder and ASCII byte array
[Fact]
public void PosTest1()
{
Decoder decoder = Encoding.UTF8.GetDecoder();
byte[] bytes = new byte[c_SIZE_OF_ARRAY];
int expected = bytes.Length;
for (int i = 0; i < bytes.Length; ++i)
{
bytes[i] = (byte)i;
}
VerificationHelper(decoder, bytes, 0, bytes.Length, expected, "001.1");
}
// PosTest2: Call GetCharCount with Unicode decoder and ASCII byte array
[Fact]
public void PosTest2()
{
Decoder decoder = Encoding.Unicode.GetDecoder();
byte[] bytes = new byte[c_SIZE_OF_ARRAY];
for (int i = 0; i < bytes.Length; ++i)
{
bytes[i] = (byte)i;
}
VerificationHelper(decoder, bytes, 0, bytes.Length, bytes.Length / 2, "002.1");
}
// PosTest3: Call GetCharCount with Unicode decoder and Unicode byte array
[Fact]
public void PosTest3()
{
Decoder decoder = Encoding.Unicode.GetDecoder();
int expected = 6;
// Unicode string: \u8FD9\u4E2A\u4E00\u4E2A\u6D4B\u8BD5
byte[] bytes = new byte[] { 217, 143, 42, 78, 0, 78, 42, 78, 75, 109, 213, 139 };
VerificationHelper(decoder, bytes, 0, bytes.Length, expected, "003.1");
}
// PosTest4: Call GetCharCount with Unicode decoder and Arbitrary byte array
[Fact]
public void PosTest4()
{
Decoder decoder = Encoding.Unicode.GetDecoder();
byte[] bytes = new byte[c_SIZE_OF_ARRAY];
_generator.GetBytes(-55, bytes);
decoder.GetCharCount(bytes, 0, bytes.Length);
}
// PosTest5: Call GetCharCount with ASCII decoder and Arbitrary byte array
[Fact]
public void PosTest5()
{
Decoder decoder = Encoding.UTF8.GetDecoder();
byte[] bytes = new byte[c_SIZE_OF_ARRAY];
_generator.GetBytes(-55, bytes);
decoder.GetCharCount(bytes, 0, bytes.Length);
}
// PosTest6: Call GetCharCount with ASCII decoder and convert partial of ASCII array
[Fact]
public void PosTest6()
{
Decoder decoder = Encoding.UTF8.GetDecoder();
byte[] bytes = new byte[c_SIZE_OF_ARRAY];
int expected = bytes.Length / 2;
for (int i = 0; i < bytes.Length; ++i)
{
bytes[i] = (byte)i;
}
VerificationHelper(decoder, bytes, 0, expected, expected, "006.1");
VerificationHelper(decoder, bytes, expected, expected, expected, "006.2");
VerificationHelper(decoder, bytes, 1, expected, expected, "006.3");
}
// PosTest7: Call GetCharCount with Unicode decoder and convert partial of Unicode byte array
[Fact]
public void PosTest7()
{
Decoder decoder = Encoding.Unicode.GetDecoder();
// Unicode string: \u8FD9\u4E2A\u4E00\u4E2A\u6D4B\u8BD5
byte[] bytes = new byte[] { 217, 143, 42, 78, 0, 78, 42, 78, 75, 109, 213, 139 };
int expected = 3;
VerificationHelper(decoder, bytes, 0, bytes.Length / 2, expected, "007.1");
VerificationHelper(decoder, bytes, bytes.Length / 2, 0, 0, "007.2");
// Set index to 1, so some characters may be not converted
VerificationHelper(decoder, bytes, 1, bytes.Length / 2, expected, "007.3");
}
// PosTest8: Call GetCharCount with ASCII decoder and count = 0
[Fact]
public void PosTest8()
{
Decoder decoder = Encoding.UTF8.GetDecoder();
byte[] bytes = new byte[c_SIZE_OF_ARRAY];
int expected = 0;
for (int i = 0; i < bytes.Length; ++i)
{
bytes[i] = (byte)i;
}
VerificationHelper(decoder, bytes, 0, expected, expected, "008.1");
VerificationHelper(decoder, bytes, 1, expected, expected, "008.3");
VerificationHelper(decoder, bytes, bytes.Length, expected, expected, "008.4");
}
#endregion
private void VerificationHelper(
Decoder decoder,
byte[] bytes,
int index,
int count,
int expected,
string errorno
)
{
int ret = decoder.GetCharCount(bytes, index, count);
Assert.Equal(expected, ret);
}
}
}
| 35.455172 | 101 | 0.560397 | [
"MIT"
] | belav/runtime | src/libraries/System.Text.Encoding/tests/Decoder/DecoderGetCharCount3.cs | 5,141 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace Purchase.Core
{
public class Constants
{
public class MessageQueues
{
public const string PurchasedQueue = "product-purchased";
}
public class EmailAddressess
{
public const string AdminPurchaseEmailAddress = "admin-purchase@gmail.com";
}
}
}
| 20.35 | 87 | 0.628993 | [
"MIT"
] | foyzulkarim/TheMicroServices | Src/PurchaseMicroservice/PurchaseCore/Constants.cs | 409 | C# |
using System.Linq;
using System.Web.Mvc;
using MvcDynamicForms.Fields;
using MvcDynamicForms.Utilities;
namespace MvcDynamicForms
{
class DynamicFormModelBinder : IModelBinder
{
public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
{
var postedForm = controllerContext.RequestContext.HttpContext.Request.Form;
var form = (Form)bindingContext.Model;
if (form == null && !string.IsNullOrEmpty(postedForm[MagicStrings.MvcDynamicSerializedForm]))
{
form = SerializationUtility.Deserialize<Form>(postedForm[MagicStrings.MvcDynamicSerializedForm]);
}
foreach (var key in postedForm.AllKeys.Where(x => x.StartsWith(form.FieldPrefix)))
{
string fieldKey = key.Remove(0, form.FieldPrefix.Length);
try
{
InputField dynField = form.InputFields.SingleOrDefault(f => f.Key == fieldKey);
if (dynField != default(InputField))
{
if (dynField is AutoComplete)
{
var txtField = (AutoComplete)dynField;
txtField.Response = postedForm[key].TrimEnd(',');
}
else if (dynField is TextField)
{
var txtField = (TextField)dynField;
txtField.Value = postedForm[key];
}
else if (dynField is NumericTextField)
{
var numerictxtField = (NumericTextField)dynField;
numerictxtField.Value = postedForm[key];
}
else if (dynField is DatePickerField)
{
var datepickerField = (DatePickerField)dynField;
datepickerField.Value = postedForm[key];
}
else if (dynField is TimePickerField)
{
var timepickerField = (TimePickerField)dynField;
timepickerField.Value = postedForm[key];
}
else if (dynField is ListField)
{
var lstField = (ListField)dynField;
// clear all choice selections
foreach (string k in lstField.Choices.Keys.ToList())
lstField.Choices[k] = false;
// set current selections
foreach (string value in postedForm.GetValues(key))
lstField.Choices[value] = true;
lstField.Choices.Remove("");
}
else if (dynField is CheckBox)
{
var chkField = (CheckBox)dynField;
bool test;
if (bool.TryParse(postedForm.GetValues(key)[0], out test))
{
chkField.Checked = test;
}
}
else if (dynField is MobileCheckBox)
{
var chkField = (MobileCheckBox)dynField;
bool test;
if (bool.TryParse(postedForm.GetValues(key)[0], out test))
{
chkField.Checked = test;
}
}
else if (dynField is AutoComplete)
{
var AutoCompleteField = (AutoComplete)dynField;
AutoCompleteField.Value = postedForm[key];
}
}
}
catch (System.InvalidOperationException ex)
{
//continue;
//form.AddFields
//(new Field[]
// { new Hidden
// {
// Title = fieldKey,
// Key = fieldKey,
// IsPlaceHolder = true,
// Value = postedForm[key]
// }
// }
//);
}
}
return form;
}
}
}
| 40.565574 | 114 | 0.39018 | [
"Apache-2.0"
] | cdc-dpbrown/Epi-Info-Cloud-Data-Capture | Epi.DynamicForms.Core/DynamicFormModelBinder.cs | 4,951 | C# |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Description;
using CSA_Project.Models;
namespace CSA_Project.Controllers
{
public class LoggerController : ApiController
{
private ApplicationDbContext db = new ApplicationDbContext();
// GET: api/Logger
public IQueryable<LoggerModel> GetLoggerModels()
{
return db.LoggerModels;
}
// GET: api/Logger/5
[ResponseType(typeof(LoggerModel))]
public async Task<IHttpActionResult> GetLoggerModel(long id)
{
LoggerModel loggerModel = await db.LoggerModels.FindAsync(id);
if (loggerModel == null)
{
return NotFound();
}
return Ok(loggerModel);
}
// PUT: api/Logger/5
[ResponseType(typeof(void))]
public async Task<IHttpActionResult> PutLoggerModel(long id, LoggerModel loggerModel)
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
if (id != loggerModel.Id)
{
return BadRequest();
}
db.Entry(loggerModel).State = EntityState.Modified;
try
{
await db.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
{
if (!LoggerModelExists(id))
{
return NotFound();
}
else
{
throw;
}
}
return StatusCode(HttpStatusCode.NoContent);
}
// POST: api/Logger
[ResponseType(typeof(LoggerModel))]
public async Task<IHttpActionResult> PostLoggerModel(LoggerModel loggerModel)
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
db.LoggerModels.Add(loggerModel);
await db.SaveChangesAsync();
return CreatedAtRoute("DefaultApi", new { id = loggerModel.Id }, loggerModel);
}
// DELETE: api/Logger/5
[ResponseType(typeof(LoggerModel))]
public async Task<IHttpActionResult> DeleteLoggerModel(long id)
{
LoggerModel loggerModel = await db.LoggerModels.FindAsync(id);
if (loggerModel == null)
{
return NotFound();
}
db.LoggerModels.Remove(loggerModel);
await db.SaveChangesAsync();
return Ok(loggerModel);
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
db.Dispose();
}
base.Dispose(disposing);
}
private bool LoggerModelExists(long id)
{
return db.LoggerModels.Count(e => e.Id == id) > 0;
}
}
} | 26.546218 | 93 | 0.533397 | [
"MIT"
] | Turgibot/FinalProject | CSA_Project/CSA_Project/Controllers/LoggerController.cs | 3,161 | C# |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from include/vulkan/vulkan_beta.h in the KhronosGroup/Vulkan-Headers repository for tag v1.2.198
// Original source is Copyright © 2015-2021 The Khronos Group Inc.
namespace TerraFX.Interop.Vulkan
{
public unsafe partial struct VkVideoCapabilitiesKHR
{
public VkStructureType sType;
public void* pNext;
public VkVideoCapabilityFlagsKHR capabilityFlags;
[NativeTypeName("VkDeviceSize")]
public ulong minBitstreamBufferOffsetAlignment;
[NativeTypeName("VkDeviceSize")]
public ulong minBitstreamBufferSizeAlignment;
public VkExtent2D videoPictureExtentGranularity;
public VkExtent2D minExtent;
public VkExtent2D maxExtent;
[NativeTypeName("uint32_t")]
public uint maxReferencePicturesSlotsCount;
[NativeTypeName("uint32_t")]
public uint maxReferencePicturesActiveCount;
}
}
| 30.342857 | 145 | 0.728814 | [
"MIT"
] | tannergooding/terrafx.interop.vulkan | sources/Interop/Vulkan/Vulkan/vulkan/vulkan_beta/VkVideoCapabilitiesKHR.cs | 1,064 | C# |
using System;
namespace Codeless.Ecma.Runtime.Intrinsics {
[IntrinsicObject(WellKnownObject.MapConstructor)]
internal static class MapConstructor {
[IntrinsicConstructor(NativeRuntimeFunctionConstraint.DenyCall, ObjectType = typeof(EcmaMap), Prototype = WellKnownObject.MapPrototype)]
[IntrinsicMember(FunctionLength = 0)]
public static EcmaValue Map([This] EcmaValue thisValue, EcmaValue iterable) {
if (!iterable.IsNullOrUndefined) {
EcmaValue adder = thisValue[WellKnownProperty.Set];
Guard.ArgumentIsCallable(adder);
foreach (EcmaValue value in iterable.ForOf()) {
Guard.ArgumentIsObject(value);
adder.Call(thisValue, value[0], value[1]);
}
}
return thisValue;
}
[IntrinsicMember(WellKnownSymbol.Species, Getter = true)]
public static EcmaValue Species([This] EcmaValue thisValue) {
return thisValue;
}
}
}
| 35.538462 | 140 | 0.707792 | [
"MIT"
] | misonou/codeless-ecma | src/Codeless.Ecma/Runtime/Intrinsics/MapConstructor.cs | 926 | C# |
//---------------------------------------------------------------------------
// This file is part of the following project:
// Mesh Diagram 3D
// Author: Maciej Zbrzezny
//
// This source is subject to the Microsoft Public License (Ms-PL)
// See http://meshdiagram3d.codeplex.com/license
//
// For more information, see:
// http://meshdiagram3d.codeplex.com/
//
//---------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using MeshDiagram3D.Elements3D;
using MeshDiagram3D.Presentation;
namespace MeshDiagram3D
{
public class TreeViewTo3DView: TreeViewTo3DView<Point3DSizedLabeledWithTreeNode<TreeNode>, TreeNode>
{
public TreeViewTo3DView( TreeNode StartTreeNode )
: base( StartTreeNode )
{
}
}
public class Point3DSizedLabeledWithTreeNode<T_PointTreeNode>: Point3DSizedLabeled
where T_PointTreeNode: TreeNode
{
public T_PointTreeNode TreeNode { get; set; }
}
public class TreeViewTo3DView<T_Point3DSizedLabeled, T_TreeNode>
where T_Point3DSizedLabeled: Point3DSizedLabeledWithTreeNode<T_TreeNode>, new()
where T_TreeNode: TreeNode
{
#region private
private const double defaultsize = 0.25;
private const double defaultdistance = 1;
private class TreeNodePoint3DSizedLabeledPair
{
public T_TreeNode TreeNode { get; private set; }
public T_Point3DSizedLabeled Point3DSizedLabeled { get; private set; }
internal TreeNodePoint3DSizedLabeledPair( T_TreeNode TreeNode, T_Point3DSizedLabeled Point3DSizedLabeled )
{
this.TreeNode = TreeNode;
this.Point3DSizedLabeled = Point3DSizedLabeled;
}
}
private ListOfIModelVisual3D elements;
private void AddChildElements( TreeNodePoint3DSizedLabeledPair pair )
{
int count = pair.TreeNode.Nodes.Count;
List<TreeNodePoint3DSizedLabeledPair> MyPairs = new List<TreeNodePoint3DSizedLabeledPair>( count );
double current_z_level = pair.Point3DSizedLabeled.Z + defaultdistance;
foreach ( TreeNode tn in pair.TreeNode.Nodes )
{
T_Point3DSizedLabeled point = new T_Point3DSizedLabeled();
point.X = 0;
point.Y = 0;
point.Z = current_z_level;
point.Size = defaultsize;
point.Label = tn.Text;
point.TreeNode = (T_TreeNode)tn;
MyPairs.Add( new TreeNodePoint3DSizedLabeledPair(
(T_TreeNode)tn, point ) );
}
int setcount = (int)Math.Round( Math.Sqrt( count ) );
double x = pair.Point3DSizedLabeled.X;
double y = pair.Point3DSizedLabeled.Y;
int idx = 0;
foreach ( TreeNodePoint3DSizedLabeledPair tnp3dpair in MyPairs )
{
tnp3dpair.Point3DSizedLabeled.X = pair.Point3DSizedLabeled.X
+ ( idx % setcount ) * defaultdistance;
tnp3dpair.Point3DSizedLabeled.Y = y;
elements.Add( tnp3dpair.Point3DSizedLabeled );
elements.Add( new Connection3D( pair.Point3DSizedLabeled, tnp3dpair.Point3DSizedLabeled ) );
idx++;
if ( ( idx % setcount ) == 0 )
y += defaultdistance;
AddChildElements( tnp3dpair );
}
}
#endregion private
public void AddContentToScene( MeshDiagram3D.Panel3DUserControl PanelWithScene )
{
foreach ( var element in elements )
{
PanelWithScene.AddModelVisual3D( element );
}
}
public TreeViewTo3DView( T_TreeNode StartTreeNode )
{
elements = new ListOfIModelVisual3D();
T_Point3DSizedLabeled RootTreeNodePoint3DSizedLabeled =
new T_Point3DSizedLabeled();
RootTreeNodePoint3DSizedLabeled.X = 0;
RootTreeNodePoint3DSizedLabeled.Y = 0;
RootTreeNodePoint3DSizedLabeled.Z = 0;
RootTreeNodePoint3DSizedLabeled.Size = defaultsize;
RootTreeNodePoint3DSizedLabeled.Label = StartTreeNode.Text;
RootTreeNodePoint3DSizedLabeled.TreeNode = StartTreeNode;
elements.Add( RootTreeNodePoint3DSizedLabeled );
AddChildElements( new TreeNodePoint3DSizedLabeledPair(
StartTreeNode, RootTreeNodePoint3DSizedLabeled ) );
}
}
}
| 37.548673 | 113 | 0.66321 | [
"MIT"
] | BiancoRoyal/ASMD | ModelDesigner.MeshDiagram3D/TreeViewTo3DView.cs | 4,245 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Time.Data.EntityModels.Install
{
[MetadataType(typeof(LiftFamilyMetadata))]
public partial class LiftFamily
{
}
public class LiftFamilyMetadata
{
[Display(Name = "Lift Family Name")]
[Required(ErrorMessage = "Lift Family Name is Required")]
public string FamilyName { get; set; }
[Display(Name = "Base Install Hours")]
[Required(ErrorMessage = "Hours are Required")]
public decimal InstallHours { get; set; }
}
} | 27.291667 | 66 | 0.654962 | [
"BSD-3-Clause"
] | pmillsaps/zone.timemfg.com | src/Orchard.Web/Modules/Time.Data/Models/Install/LiftFamily.cs | 657 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace JIT.HardwareIntrinsics.X86
{
public static partial class Program
{
private static void InsertInt161()
{
var test = new InsertScalarTest__InsertInt161();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
// Validates basic functionality works, using LoadAligned
test.RunBasicScenario_LoadAligned();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
// Validates calling via reflection works, using LoadAligned
test.RunReflectionScenario_LoadAligned();
}
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
// Validates passing a local works, using LoadAligned
test.RunLclVarScenario_LoadAligned();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class InsertScalarTest__InsertInt161
{
private struct TestStruct
{
public Vector128<Int16> _fld;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = (short)0; }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int16>, byte>(ref testStruct._fld), ref Unsafe.As<Int16, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<Int16>>());
return testStruct;
}
public void RunStructFldScenario(InsertScalarTest__InsertInt161 testClass)
{
var result = Sse2.Insert(_fld, (short)2, 1);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 16;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Int16>>() / sizeof(Int16);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Int16>>() / sizeof(Int16);
private static Int16[] _data = new Int16[Op1ElementCount];
private static Vector128<Int16> _clsVar;
private Vector128<Int16> _fld;
private SimpleUnaryOpTest__DataTable<Int16, Int16> _dataTable;
static InsertScalarTest__InsertInt161()
{
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = (short)0; }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int16>, byte>(ref _clsVar), ref Unsafe.As<Int16, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<Int16>>());
}
public InsertScalarTest__InsertInt161()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = (short)0; }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int16>, byte>(ref _fld), ref Unsafe.As<Int16, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<Int16>>());
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = (short)0; }
_dataTable = new SimpleUnaryOpTest__DataTable<Int16, Int16>(_data, new Int16[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Sse2.IsSupported && (Environment.Is64BitProcess || ((typeof(Int16) != typeof(long)) && (typeof(Int16) != typeof(ulong))));
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
var result = Sse2.Insert(
Unsafe.Read<Vector128<Int16>>(_dataTable.inArrayPtr),
(short)2,
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
var result = Sse2.Insert(
Sse2.LoadVector128((Int16*)(_dataTable.inArrayPtr)),
(short)2,
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_LoadAligned()
{
var result = Sse2.Insert(
Sse2.LoadAlignedVector128((Int16*)(_dataTable.inArrayPtr)),
(short)2,
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
var result = typeof(Sse2).GetMethod(nameof(Sse2.Insert), new Type[] { typeof(Vector128<Int16>), typeof(Int16), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<Vector128<Int16>>(_dataTable.inArrayPtr),
(short)2,
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int16>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
var result = typeof(Sse2).GetMethod(nameof(Sse2.Insert), new Type[] { typeof(Vector128<Int16>), typeof(Int16), typeof(byte) })
.Invoke(null, new object[] {
Sse2.LoadVector128((Int16*)(_dataTable.inArrayPtr)),
(short)2,
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int16>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_LoadAligned()
{
var result = typeof(Sse2).GetMethod(nameof(Sse2.Insert), new Type[] { typeof(Vector128<Int16>), typeof(Int16), typeof(byte) })
.Invoke(null, new object[] {
Sse2.LoadAlignedVector128((Int16*)(_dataTable.inArrayPtr)),
(short)2,
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int16>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
var result = Sse2.Insert(
_clsVar,
(short)2,
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
var firstOp = Unsafe.Read<Vector128<Int16>>(_dataTable.inArrayPtr);
var result = Sse2.Insert(firstOp, (short)2, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
var firstOp = Sse2.LoadVector128((Int16*)(_dataTable.inArrayPtr));
var result = Sse2.Insert(firstOp, (short)2, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_LoadAligned()
{
var firstOp = Sse2.LoadAlignedVector128((Int16*)(_dataTable.inArrayPtr));
var result = Sse2.Insert(firstOp, (short)2, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
var test = new InsertScalarTest__InsertInt161();
var result = Sse2.Insert(test._fld, (short)2, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
var result = Sse2.Insert(_fld, (short)2, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
var test = TestStruct.Create();
var result = Sse2.Insert(test._fld, (short)2, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
Succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
Succeeded = true;
}
}
private void ValidateResult(Vector128<Int16> firstOp, void* result, [CallerMemberName] string method = "")
{
Int16[] inArray = new Int16[Op1ElementCount];
Int16[] outArray = new Int16[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Int16, byte>(ref inArray[0]), firstOp);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int16>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(void* firstOp, void* result, [CallerMemberName] string method = "")
{
Int16[] inArray = new Int16[Op1ElementCount];
Int16[] outArray = new Int16[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int16, byte>(ref inArray[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector128<Int16>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int16>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(Int16[] firstOp, Int16[] result, [CallerMemberName] string method = "")
{
for (var i = 0; i < RetElementCount; i++)
{
if ((i == 1 ? result[i] != 2 : result[i] != 0))
{
Succeeded = false;
break;
}
}
if (!Succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Sse2)}.{nameof(Sse2.Insert)}<Int16>(Vector128<Int16><9>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
}
}
}
}
| 38.501408 | 185 | 0.554507 | [
"MIT"
] | MSHOY/coreclr | tests/src/JIT/HardwareIntrinsics/X86/Sse2/Insert.Int16.1.cs | 13,668 | C# |
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Net;
using System.Threading.Tasks;
using System.Web;
using System.Web.Http;
using WebAPI.BLL.Interfaces.Services;
using WebAPI.Models;
using WebAPI.BLL.Entities;
using System.Linq;
using System.IO;
using Microsoft.AspNet.Identity;
namespace WebAPI.Controllers
{
[RoutePrefix("api/images")]
public class ImageController : ApiController
{
private readonly IImageService _imageService;
private readonly IBlobStorageService _blobStorageService;
public ImageController(IImageService imageService, IBlobStorageService blobStorageService)
{
_imageService = imageService;
_blobStorageService = blobStorageService;
}
//GET: api/images/all
[HttpGet]
[Route("all")]
public IHttpActionResult GetAll()
{
var appUser = Guid.Parse(User.Identity.GetUserId());
var images = Mapper.Map<IEnumerable<Image>,
IEnumerable<ImageBindingModel>>(_imageService.GetAll());
return Ok(images.ToList());
}
//GET: api/images/all
[HttpGet]
[Route("imagesbyuser")]
public IHttpActionResult GetImagesByUserId()
{
var userIdLogged = Guid.Parse(User.Identity.GetUserId());
var images = Mapper.Map<IEnumerable<Image>,
IEnumerable<ImageBindingModel>>(_imageService.GetImagesByUserId(userIdLogged));
return Ok(images.ToList());
}
//GET: api/images/image/info/5
[HttpGet]
[Route("image/info/{id}")]
public IHttpActionResult GetById(Guid id)
{
var imageBM = Mapper.Map<Image, ImageBindingModel>(_imageService.GetById(id));
if (imageBM != null)
{
return Ok(imageBM);
}
return Content(HttpStatusCode.NotFound, "Friend not found!");
}
//POST: api/images/save
[HttpPost]
[Route("save")]
public IHttpActionResult Save(ImageBindingModel imageBM)
{
if (ModelState.IsValid)
{
try
{
var image = Mapper.Map<ImageBindingModel, Image>(imageBM);
image.Id = Guid.NewGuid();
_imageService.Save(image);
var imageSaved = _imageService.GetById(image.Id);
imageBM = Mapper.Map<Image, ImageBindingModel>(imageSaved);
return Ok(imageBM);
}
catch (Exception ex)
{
var result = ex.Message;
}
}
else
{
return BadRequest(ModelState);
}
return Ok(StatusCode(HttpStatusCode.BadRequest));
}
//PUT: api/images/update/5
[HttpPut]
[Route("update")]
public IHttpActionResult Update(ImageBindingModel imageBM)
{
try
{
var image = Mapper.Map<ImageBindingModel, Image>(imageBM);
_imageService.Update(image);
imageBM = Mapper.Map<Image, ImageBindingModel>(image);
return Ok(imageBM);
}
catch (Exception ex)
{
var result = ex.Message;
}
return Ok(StatusCode(HttpStatusCode.BadRequest));
}
//DELETE: api/images/del/5
[HttpDelete]
[Route("image/del/{id}")]
public IHttpActionResult Delete(Guid id)
{
try
{
var imageBM = new ImageBindingModel()
{
Id = id
};
var image = Mapper.Map<ImageBindingModel, Image>(imageBM);
_imageService.Delete(image.Id);
return Ok();
}
catch (Exception ex)
{
var result = ex.Message;
}
return Ok(StatusCode(HttpStatusCode.BadRequest));
}
//POST: api/images/upload
[HttpPost]
[Route("upload")]
public async Task<IHttpActionResult> Upload()
{
if (ModelState.IsValid)
{
try
{
var photoUrl = String.Empty;
var files = HttpContext.Current.Request.Files;
for (int i = 0; i < files.Count; i++)
{
var imageFile = files[i];
photoUrl = await _blobStorageService
.UploadImage("images", Guid.NewGuid().ToString() + Path.GetExtension(imageFile.FileName),
imageFile.InputStream, imageFile.ContentType);
}
return Ok(photoUrl);
}
catch (Exception ex)
{
var result = ex.Message;
}
}
else
{
return BadRequest(ModelState);
}
return Ok(StatusCode(HttpStatusCode.BadRequest));
}
}
}
| 29.854749 | 117 | 0.500749 | [
"MIT"
] | AlexanderVieira/WebApiSocialNetwork-Ioc-Identity | WebAPI/Controllers/ImageController.cs | 5,346 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using DotNetCore.CAP.Messages;
using Microsoft.Extensions.Logging;
namespace Savorboard.CAP.InMemoryMessageQueue
{
internal class InMemoryQueue
{
private readonly ILogger<InMemoryQueue> _logger;
private static readonly object Lock = new object();
private readonly Dictionary<string, (Action<TransportMessage>, List<string>)> _groupTopics;
public InMemoryQueue(ILogger<InMemoryQueue> logger)
{
_logger = logger;
_groupTopics = new Dictionary<string, (Action<TransportMessage>, List<string>)>();
}
public void Subscribe(string groupId, Action<TransportMessage> received, string topic)
{
lock (Lock)
{
if (_groupTopics.ContainsKey(groupId))
{
var topics = _groupTopics[groupId];
if (!topics.Item2.Contains(topic))
{
topics.Item2.Add(topic);
}
}
else
{
_groupTopics.Add(groupId, (received, new List<string> { topic }));
}
}
}
public void ClearSubscriber()
{
_groupTopics.Clear();
}
public void Send(TransportMessage message)
{
var name = message.GetName();
foreach (var groupTopic in _groupTopics.Where(o => o.Value.Item2.Contains(name)))
{
try
{
var message_copy = new TransportMessage(message.Headers.ToDictionary(o => o.Key, o => o.Value), message.Body);
message_copy.Headers[Headers.Group] = groupTopic.Key;
groupTopic.Value.Item1?.Invoke(message_copy);
}
catch (Exception e)
{
_logger.LogError(e, $"Consumption message raises an exception. Group-->{groupTopic.Key} Name-->{name}");
}
}
}
}
}
| 32.538462 | 130 | 0.529078 | [
"MIT"
] | yang-xiaodong/Savorboard.CAP.InMemoryMessageQueue | src/Savorboard.CAP.InMemoryMessageQueue/InMemoryQueue.cs | 2,117 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Text;
using Microsoft.Data.DataView;
using Microsoft.ML;
using Microsoft.ML.CommandLine;
using Microsoft.ML.Data;
using Microsoft.ML.EntryPoints;
using Microsoft.ML.Internal.Utilities;
using Microsoft.ML.Model;
using Microsoft.ML.Transforms;
[assembly: LoadableClass(typeof(LabelIndicatorTransform), typeof(LabelIndicatorTransform.Arguments), typeof(SignatureDataTransform),
LabelIndicatorTransform.UserName, LabelIndicatorTransform.LoadName, "LabelIndicator")]
[assembly: LoadableClass(typeof(LabelIndicatorTransform), null, typeof(SignatureLoadDataTransform), LabelIndicatorTransform.UserName,
LabelIndicatorTransform.LoaderSignature)]
[assembly: LoadableClass(typeof(void), typeof(LabelIndicatorTransform), null, typeof(SignatureEntryPointModule), LabelIndicatorTransform.LoadName)]
namespace Microsoft.ML.Transforms
{
/// <summary>
/// Remaps multiclass labels to binary T,F labels, primarily for use with OVA.
/// </summary>
[BestFriend]
internal sealed class LabelIndicatorTransform : OneToOneTransformBase
{
internal const string Summary = "Remaps labels from multiclass to binary, for OVA.";
internal const string UserName = "Label Indicator Transform";
public const string LoaderSignature = "LabelIndicatorTransform";
public const string LoadName = LoaderSignature;
private readonly int[] _classIndex;
private static VersionInfo GetVersionInfo()
{
return new VersionInfo(
modelSignature: "LBINDTRN",
verWrittenCur: 0x00010001, // Initial
verReadableCur: 0x00010001,
verWeCanReadBack: 0x00010001,
loaderSignature: LoaderSignature,
loaderAssemblyName: typeof(LabelIndicatorTransform).Assembly.FullName);
}
public sealed class Column : OneToOneColumn
{
[Argument(ArgumentType.AtMostOnce, HelpText = "The positive example class for binary classification.", ShortName = "index")]
public int? ClassIndex;
internal static Column Parse(string str)
{
Contracts.AssertNonEmpty(str);
var res = new Column();
if (res.TryParse(str))
return res;
return null;
}
internal bool TryUnparse(StringBuilder sb)
{
Contracts.AssertValue(sb);
return TryUnparseCore(sb);
}
}
public sealed class Arguments : TransformInputBase
{
[Argument(ArgumentType.Multiple, HelpText = "New column definition(s) (optional form: name:src)", ShortName = "col", SortOrder = 1)]
public Column[] Column;
[Argument(ArgumentType.AtMostOnce, HelpText = "Label of the positive class.", ShortName = "index")]
public int ClassIndex;
}
public static LabelIndicatorTransform Create(IHostEnvironment env,
ModelLoadContext ctx, IDataView input)
{
Contracts.CheckValue(env, nameof(env));
IHost h = env.Register(LoaderSignature);
h.CheckValue(ctx, nameof(ctx));
h.CheckValue(input, nameof(input));
return h.Apply("Loading Model",
ch => new LabelIndicatorTransform(h, ctx, input));
}
public static LabelIndicatorTransform Create(IHostEnvironment env,
Arguments args, IDataView input)
{
Contracts.CheckValue(env, nameof(env));
IHost h = env.Register(LoaderSignature);
h.CheckValue(args, nameof(args));
h.CheckValue(input, nameof(input));
return h.Apply("Loading Model",
ch => new LabelIndicatorTransform(h, args, input));
}
public override void Save(ModelSaveContext ctx)
{
Host.CheckValue(ctx, nameof(ctx));
ctx.CheckAtModel();
ctx.SetVersionInfo(GetVersionInfo());
SaveBase(ctx);
ctx.Writer.WriteIntStream(_classIndex);
}
private static string TestIsMulticlassLabel(ColumnType type)
{
if (type.GetKeyCount() > 0 || type == NumberType.R4 || type == NumberType.R8)
return null;
return $"Label column type is not supported for binary remapping: {type}. Supported types: key, float, double.";
}
/// <summary>
/// Initializes a new instance of <see cref="LabelIndicatorTransform"/>.
/// </summary>
/// <param name="env">Host Environment.</param>
/// <param name="input">Input <see cref="IDataView"/>. This is the output from previous transform or loader.</param>
/// <param name="classIndex">Label of the positive class.</param>
/// <param name="name">Name of the output column.</param>
/// <param name="source">Name of the input column. If this is null '<paramref name="name"/>' will be used.</param>
public LabelIndicatorTransform(IHostEnvironment env,
IDataView input,
int classIndex,
string name,
string source = null)
: this(env, new Arguments() { Column = new[] { new Column() { Source = source ?? name, Name = name } }, ClassIndex = classIndex }, input)
{
}
public LabelIndicatorTransform(IHostEnvironment env, Arguments args, IDataView input)
: base(env, LoadName, Contracts.CheckRef(args, nameof(args)).Column,
input, TestIsMulticlassLabel)
{
Host.AssertNonEmpty(Infos);
Host.Assert(Infos.Length == Utils.Size(args.Column));
_classIndex = new int[Infos.Length];
for (int iinfo = 0; iinfo < Infos.Length; ++iinfo)
_classIndex[iinfo] = args.Column[iinfo].ClassIndex ?? args.ClassIndex;
Metadata.Seal();
}
private LabelIndicatorTransform(IHost host, ModelLoadContext ctx, IDataView input)
: base(host, ctx, input, TestIsMulticlassLabel)
{
Host.AssertValue(ctx);
Host.AssertNonEmpty(Infos);
_classIndex = new int[Infos.Length];
for (int iinfo = 0; iinfo < Infos.Length; ++iinfo)
_classIndex[iinfo] = ctx.Reader.ReadInt32();
Metadata.Seal();
}
protected override ColumnType GetColumnTypeCore(int iinfo)
{
Host.Assert(0 <= iinfo && iinfo < Infos.Length);
return BoolType.Instance;
}
protected override Delegate GetGetterCore(IChannel ch, Row input,
int iinfo, out Action disposer)
{
Host.AssertValue(ch);
ch.AssertValue(input);
ch.Assert(0 <= iinfo && iinfo < Infos.Length);
disposer = null;
var info = Infos[iinfo];
return GetGetter(ch, input, iinfo);
}
private ValueGetter<bool> GetGetter(IChannel ch, Row input, int iinfo)
{
Host.AssertValue(ch);
ch.AssertValue(input);
ch.Assert(0 <= iinfo && iinfo < Infos.Length);
var info = Infos[iinfo];
ch.Assert(TestIsMulticlassLabel(info.TypeSrc) == null);
if (info.TypeSrc.GetKeyCount() > 0)
{
var srcGetter = input.GetGetter<uint>(info.Source);
var src = default(uint);
uint cls = (uint)(_classIndex[iinfo] + 1);
return
(ref bool dst) =>
{
srcGetter(ref src);
dst = src == cls;
};
}
if (info.TypeSrc == NumberType.R4)
{
var srcGetter = input.GetGetter<float>(info.Source);
var src = default(float);
return
(ref bool dst) =>
{
srcGetter(ref src);
dst = src == _classIndex[iinfo];
};
}
if (info.TypeSrc == NumberType.R8)
{
var srcGetter = input.GetGetter<double>(info.Source);
var src = default(double);
return
(ref bool dst) =>
{
srcGetter(ref src);
dst = src == _classIndex[iinfo];
};
}
throw Host.ExceptNotSupp($"Label column type is not supported for binary remapping: {info.TypeSrc}. Supported types: key, float, double.");
}
[TlcModule.EntryPoint(Name = "Transforms.LabelIndicator", Desc = "Label remapper used by OVA", UserName = "LabelIndicator",
ShortName = "LabelIndictator")]
public static CommonOutputs.TransformOutput LabelIndicator(IHostEnvironment env, Arguments input)
{
Contracts.CheckValue(env, nameof(env));
var host = env.Register("LabelIndictator");
host.CheckValue(input, nameof(input));
EntryPointUtils.CheckInputArgs(host, input);
var xf = Create(host, input, input.Data);
return new CommonOutputs.TransformOutput { Model = new TransformModelImpl(env, xf, input.Data), OutputData = xf };
}
}
}
| 39.563786 | 151 | 0.585084 | [
"MIT"
] | PaulTFreedman/machinelearning | src/Microsoft.ML.Data/Transforms/LabelIndicatorTransform.cs | 9,614 | C# |
namespace MyCoolWebServer.Server.Routing.Contracts
{
using System;
using System.Collections.Generic;
using Enums;
using Handlers;
using Http.Contracts;
public interface IAppRouteConfig
{
IReadOnlyDictionary<HttpRequestMethod, IDictionary<string, RequestHandler>> Routes { get; }
ICollection<string> AnonymousPaths { get; }
void Get(string route, Func<IHttpRequest, IHttpResponse> handler);
void Post(string route, Func<IHttpRequest, IHttpResponse> handler);
void AddRoute(string route, HttpRequestMethod method, RequestHandler handler);
}
}
| 28.5 | 99 | 0.706539 | [
"MIT"
] | pirocorp/CSharp-Web-Basics | Workshop/WebServer/MyCoolWebServer/Server/Routing/Contracts/IAppRouteConfig.cs | 629 | C# |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the config-2014-11-12.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.ConfigService.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ConfigService.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for RemediationExceptionResourceKey Object
/// </summary>
public class RemediationExceptionResourceKeyUnmarshaller : IUnmarshaller<RemediationExceptionResourceKey, XmlUnmarshallerContext>, IUnmarshaller<RemediationExceptionResourceKey, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
RemediationExceptionResourceKey IUnmarshaller<RemediationExceptionResourceKey, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public RemediationExceptionResourceKey Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
RemediationExceptionResourceKey unmarshalledObject = new RemediationExceptionResourceKey();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ResourceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static RemediationExceptionResourceKeyUnmarshaller _instance = new RemediationExceptionResourceKeyUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static RemediationExceptionResourceKeyUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 37.55102 | 207 | 0.634511 | [
"Apache-2.0"
] | philasmar/aws-sdk-net | sdk/src/Services/ConfigService/Generated/Model/Internal/MarshallTransformations/RemediationExceptionResourceKeyUnmarshaller.cs | 3,680 | C# |
//*******************************************************************************************//
// //
// Download Free Evaluation Version From: https://bytescout.com/download/web-installer //
// //
// Also available as Web API! Get Your Free API Key: https://app.pdf.co/signup //
// //
// Copyright © 2017-2020 ByteScout, Inc. All rights reserved. //
// https://www.bytescout.com //
// https://pdf.co //
// //
//*******************************************************************************************//
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace ByteScoutWebApiExample
{
class Program
{
// The authentication key (API Key).
// Get your own by registering at https://app.pdf.co/documentation/api
const String API_KEY = "*****************************************";
// Direct URL of source PDF file.
const string SourceFileUrl = "https://bytescout-com.s3.amazonaws.com/files/demo-files/cloud-api/pdf-edit/sample.pdf";
// Comma-separated list of page indices (or ranges) to process. Leave empty for all pages. Example: '0,2-5,7-'.
const string Pages = "";
// PDF document password. Leave empty for unprotected documents.
const string Password = "";
// Destination PDF file name
const string DestinationFile = @".\result.pdf";
// Image params
private const string Type1 = "image";
private const int X1 = 400;
private const int Y1 = 20;
private const int Width1 = 119;
private const int Height1 = 32;
private const string ImageUrl = "https://bytescout-com.s3.amazonaws.com/files/demo-files/cloud-api/pdf-edit/logo.png";
static void Main(string[] args)
{
// Create standard .NET web client instance
WebClient webClient = new WebClient();
// Set API Key
webClient.Headers.Add("x-api-key", API_KEY);
// * Add image *
// Prepare requests params as JSON
// See documentation: https://apidocs.pdf.co/?#pdf-add-text-and-images-to-pdf
Dictionary<string, string> parameters = new Dictionary<string, string>();
parameters.Add("name", Path.GetFileName(DestinationFile));
parameters.Add("password", Password);
parameters.Add("pages", Pages);
parameters.Add("url", SourceFileUrl);
parameters.Add("type", Type1);
parameters.Add("x", X1.ToString());
parameters.Add("y", Y1.ToString());
parameters.Add("width", Width1.ToString());
parameters.Add("height", Height1.ToString());
parameters.Add("urlimage", ImageUrl);
// Convert dictionary of params to JSON
string jsonPayload = JsonConvert.SerializeObject(parameters);
try
{
// URL of "PDF Edit" endpoint
string url = "https://api.pdf.co/v1/pdf/edit/add";
// Execute POST request with JSON payload
string response = webClient.UploadString(url, jsonPayload);
// Parse JSON response
JObject json = JObject.Parse(response);
if (json["error"].ToObject<bool>() == false)
{
// Get URL of generated PDF file
string resultFileUrl = json["url"].ToString();
// Download generated PDF file
webClient.DownloadFile(resultFileUrl, DestinationFile);
Console.WriteLine("Generated PDF file saved as \"{0}\" file.", DestinationFile);
}
else
{
Console.WriteLine(json["message"].ToString());
}
}
catch (WebException e)
{
Console.WriteLine(e.ToString());
}
finally
{
webClient.Dispose();
}
Console.WriteLine();
Console.WriteLine("Press any key...");
Console.ReadKey();
}
}
}
| 39.45614 | 127 | 0.49711 | [
"Apache-2.0"
] | atkins126/ByteScout-SDK-SourceCode | PDF.co Web API/Add Text And Images To PDF/C#/Add Images to Existing PDF/Program.cs | 4,499 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Text.Unicode;
using System.Threading.Tasks;
namespace GZTimeServer.Models
{
public static class Coding
{
public static class BASE64
{
public static string Decode(string str, string type = "utf-8")
=> Encoding.GetEncoding(type).GetString(Convert.FromBase64String(str));
public static string Encode(string str, string type = "utf-8")
=> Convert.ToBase64String(Encoding.GetEncoding(type).GetBytes(str));
}
/// <summary>
/// 获取字符串ASCII数组
/// </summary>
/// <param name="str">原字符串</param>
/// <returns></returns>
public static List<int> ASCII(string str)
{
byte[] buff = Encoding.ASCII.GetBytes(str);
List<int> res = new List<int>();
foreach (var item in buff)
res.Add(item);
return res;
}
/// <summary>
/// 转换为对应进制
/// </summary>
/// <param name="source">源数据</param>
/// <param name="tobase">进制支持2,8,10,16</param>
/// <returns></returns>
public static List<string> ToBase(List<int> source,int tobase)
=> new List<string>(source.ConvertAll((int a) => Convert.ToString(a,tobase)));
/// <summary>
/// 反转字符串
/// </summary>
/// <param name="s">原字符串</param>
/// <returns></returns>
public static string Reverse(string s)
{
char[] charArray = s.ToCharArray();
Array.Reverse(charArray);
return new string(charArray);
}
/// <summary>
/// 获取MD5值
/// </summary>
/// <returns></returns>
public static string MD5(string str)
{
byte[] result = Encoding.Default.GetBytes(str);
MD5 md5 = new MD5CryptoServiceProvider();
byte[] output = md5.ComputeHash(result);
return BitConverter.ToString(output).Replace("-", "").ToLower();
}
}
}
| 30.671429 | 90 | 0.544481 | [
"MIT"
] | GZTimeHacker/PuzzleGame-v1 | Models/Coding.cs | 2,223 | C# |
using Microsoft.AspNetCore.Mvc;
namespace Trencadis.AspNetCoreDemoApp.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult About()
{
ViewData["Message"] = "Your application description page.";
return View();
}
public IActionResult Contact()
{
ViewData["Message"] = "Your contact page.";
return View();
}
public IActionResult Error()
{
return View();
}
}
}
| 16.4375 | 65 | 0.610266 | [
"MIT"
] | Trencadis-Labs/Trencadis.AspNetCoreDemoApp | src/Trencadis.AspNetCoreDemoApp/Controllers/HomeController.cs | 528 | C# |
/// This code was generated by
/// \ / _ _ _| _ _
/// | (_)\/(_)(_|\/| |(/_ v1.0.0
/// / /
/// <summary>
/// AwsResource
/// </summary>
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using Twilio.Base;
using Twilio.Clients;
using Twilio.Converters;
using Twilio.Exceptions;
using Twilio.Http;
namespace Twilio.Rest.Accounts.V1.Credential
{
public class AwsResource : Resource
{
private static Request BuildReadRequest(ReadAwsOptions options, ITwilioRestClient client)
{
return new Request(
HttpMethod.Get,
Rest.Domain.Accounts,
"/v1/Credentials/AWS",
queryParams: options.GetParams()
);
}
/// <summary>
/// Retrieves a collection of AWS Credentials belonging to the account used to make the request
/// </summary>
/// <param name="options"> Read Aws parameters </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Aws </returns>
public static ResourceSet<AwsResource> Read(ReadAwsOptions options, ITwilioRestClient client = null)
{
client = client ?? TwilioClient.GetRestClient();
var response = client.Request(BuildReadRequest(options, client));
var page = Page<AwsResource>.FromJson("credentials", response.Content);
return new ResourceSet<AwsResource>(page, options, client);
}
#if !NET35
/// <summary>
/// Retrieves a collection of AWS Credentials belonging to the account used to make the request
/// </summary>
/// <param name="options"> Read Aws parameters </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Aws </returns>
public static async System.Threading.Tasks.Task<ResourceSet<AwsResource>> ReadAsync(ReadAwsOptions options,
ITwilioRestClient client = null)
{
client = client ?? TwilioClient.GetRestClient();
var response = await client.RequestAsync(BuildReadRequest(options, client));
var page = Page<AwsResource>.FromJson("credentials", response.Content);
return new ResourceSet<AwsResource>(page, options, client);
}
#endif
/// <summary>
/// Retrieves a collection of AWS Credentials belonging to the account used to make the request
/// </summary>
/// <param name="pageSize"> Page size </param>
/// <param name="limit"> Record limit </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Aws </returns>
public static ResourceSet<AwsResource> Read(int? pageSize = null,
long? limit = null,
ITwilioRestClient client = null)
{
var options = new ReadAwsOptions(){PageSize = pageSize, Limit = limit};
return Read(options, client);
}
#if !NET35
/// <summary>
/// Retrieves a collection of AWS Credentials belonging to the account used to make the request
/// </summary>
/// <param name="pageSize"> Page size </param>
/// <param name="limit"> Record limit </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Aws </returns>
public static async System.Threading.Tasks.Task<ResourceSet<AwsResource>> ReadAsync(int? pageSize = null,
long? limit = null,
ITwilioRestClient client = null)
{
var options = new ReadAwsOptions(){PageSize = pageSize, Limit = limit};
return await ReadAsync(options, client);
}
#endif
/// <summary>
/// Fetch the target page of records
/// </summary>
/// <param name="targetUrl"> API-generated URL for the requested results page </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> The target page of records </returns>
public static Page<AwsResource> GetPage(string targetUrl, ITwilioRestClient client)
{
client = client ?? TwilioClient.GetRestClient();
var request = new Request(
HttpMethod.Get,
targetUrl
);
var response = client.Request(request);
return Page<AwsResource>.FromJson("credentials", response.Content);
}
/// <summary>
/// Fetch the next page of records
/// </summary>
/// <param name="page"> current page of records </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> The next page of records </returns>
public static Page<AwsResource> NextPage(Page<AwsResource> page, ITwilioRestClient client)
{
var request = new Request(
HttpMethod.Get,
page.GetNextPageUrl(Rest.Domain.Accounts)
);
var response = client.Request(request);
return Page<AwsResource>.FromJson("credentials", response.Content);
}
/// <summary>
/// Fetch the previous page of records
/// </summary>
/// <param name="page"> current page of records </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> The previous page of records </returns>
public static Page<AwsResource> PreviousPage(Page<AwsResource> page, ITwilioRestClient client)
{
var request = new Request(
HttpMethod.Get,
page.GetPreviousPageUrl(Rest.Domain.Accounts)
);
var response = client.Request(request);
return Page<AwsResource>.FromJson("credentials", response.Content);
}
private static Request BuildCreateRequest(CreateAwsOptions options, ITwilioRestClient client)
{
return new Request(
HttpMethod.Post,
Rest.Domain.Accounts,
"/v1/Credentials/AWS",
postParams: options.GetParams()
);
}
/// <summary>
/// Create a new AWS Credential
/// </summary>
/// <param name="options"> Create Aws parameters </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Aws </returns>
public static AwsResource Create(CreateAwsOptions options, ITwilioRestClient client = null)
{
client = client ?? TwilioClient.GetRestClient();
var response = client.Request(BuildCreateRequest(options, client));
return FromJson(response.Content);
}
#if !NET35
/// <summary>
/// Create a new AWS Credential
/// </summary>
/// <param name="options"> Create Aws parameters </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Aws </returns>
public static async System.Threading.Tasks.Task<AwsResource> CreateAsync(CreateAwsOptions options,
ITwilioRestClient client = null)
{
client = client ?? TwilioClient.GetRestClient();
var response = await client.RequestAsync(BuildCreateRequest(options, client));
return FromJson(response.Content);
}
#endif
/// <summary>
/// Create a new AWS Credential
/// </summary>
/// <param name="credentials"> A string that contains the AWS access credentials in the format
/// <AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY> </param>
/// <param name="friendlyName"> A string to describe the resource </param>
/// <param name="accountSid"> The Subaccount this Credential should be associated with. </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Aws </returns>
public static AwsResource Create(string credentials,
string friendlyName = null,
string accountSid = null,
ITwilioRestClient client = null)
{
var options = new CreateAwsOptions(credentials){FriendlyName = friendlyName, AccountSid = accountSid};
return Create(options, client);
}
#if !NET35
/// <summary>
/// Create a new AWS Credential
/// </summary>
/// <param name="credentials"> A string that contains the AWS access credentials in the format
/// <AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY> </param>
/// <param name="friendlyName"> A string to describe the resource </param>
/// <param name="accountSid"> The Subaccount this Credential should be associated with. </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Aws </returns>
public static async System.Threading.Tasks.Task<AwsResource> CreateAsync(string credentials,
string friendlyName = null,
string accountSid = null,
ITwilioRestClient client = null)
{
var options = new CreateAwsOptions(credentials){FriendlyName = friendlyName, AccountSid = accountSid};
return await CreateAsync(options, client);
}
#endif
private static Request BuildFetchRequest(FetchAwsOptions options, ITwilioRestClient client)
{
return new Request(
HttpMethod.Get,
Rest.Domain.Accounts,
"/v1/Credentials/AWS/" + options.PathSid + "",
queryParams: options.GetParams()
);
}
/// <summary>
/// Fetch the AWS credentials specified by the provided Credential Sid
/// </summary>
/// <param name="options"> Fetch Aws parameters </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Aws </returns>
public static AwsResource Fetch(FetchAwsOptions options, ITwilioRestClient client = null)
{
client = client ?? TwilioClient.GetRestClient();
var response = client.Request(BuildFetchRequest(options, client));
return FromJson(response.Content);
}
#if !NET35
/// <summary>
/// Fetch the AWS credentials specified by the provided Credential Sid
/// </summary>
/// <param name="options"> Fetch Aws parameters </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Aws </returns>
public static async System.Threading.Tasks.Task<AwsResource> FetchAsync(FetchAwsOptions options,
ITwilioRestClient client = null)
{
client = client ?? TwilioClient.GetRestClient();
var response = await client.RequestAsync(BuildFetchRequest(options, client));
return FromJson(response.Content);
}
#endif
/// <summary>
/// Fetch the AWS credentials specified by the provided Credential Sid
/// </summary>
/// <param name="pathSid"> The unique string that identifies the resource </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Aws </returns>
public static AwsResource Fetch(string pathSid, ITwilioRestClient client = null)
{
var options = new FetchAwsOptions(pathSid);
return Fetch(options, client);
}
#if !NET35
/// <summary>
/// Fetch the AWS credentials specified by the provided Credential Sid
/// </summary>
/// <param name="pathSid"> The unique string that identifies the resource </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Aws </returns>
public static async System.Threading.Tasks.Task<AwsResource> FetchAsync(string pathSid,
ITwilioRestClient client = null)
{
var options = new FetchAwsOptions(pathSid);
return await FetchAsync(options, client);
}
#endif
private static Request BuildUpdateRequest(UpdateAwsOptions options, ITwilioRestClient client)
{
return new Request(
HttpMethod.Post,
Rest.Domain.Accounts,
"/v1/Credentials/AWS/" + options.PathSid + "",
postParams: options.GetParams()
);
}
/// <summary>
/// Modify the properties of a given Account
/// </summary>
/// <param name="options"> Update Aws parameters </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Aws </returns>
public static AwsResource Update(UpdateAwsOptions options, ITwilioRestClient client = null)
{
client = client ?? TwilioClient.GetRestClient();
var response = client.Request(BuildUpdateRequest(options, client));
return FromJson(response.Content);
}
#if !NET35
/// <summary>
/// Modify the properties of a given Account
/// </summary>
/// <param name="options"> Update Aws parameters </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Aws </returns>
public static async System.Threading.Tasks.Task<AwsResource> UpdateAsync(UpdateAwsOptions options,
ITwilioRestClient client = null)
{
client = client ?? TwilioClient.GetRestClient();
var response = await client.RequestAsync(BuildUpdateRequest(options, client));
return FromJson(response.Content);
}
#endif
/// <summary>
/// Modify the properties of a given Account
/// </summary>
/// <param name="pathSid"> The unique string that identifies the resource </param>
/// <param name="friendlyName"> A string to describe the resource </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Aws </returns>
public static AwsResource Update(string pathSid, string friendlyName = null, ITwilioRestClient client = null)
{
var options = new UpdateAwsOptions(pathSid){FriendlyName = friendlyName};
return Update(options, client);
}
#if !NET35
/// <summary>
/// Modify the properties of a given Account
/// </summary>
/// <param name="pathSid"> The unique string that identifies the resource </param>
/// <param name="friendlyName"> A string to describe the resource </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Aws </returns>
public static async System.Threading.Tasks.Task<AwsResource> UpdateAsync(string pathSid,
string friendlyName = null,
ITwilioRestClient client = null)
{
var options = new UpdateAwsOptions(pathSid){FriendlyName = friendlyName};
return await UpdateAsync(options, client);
}
#endif
private static Request BuildDeleteRequest(DeleteAwsOptions options, ITwilioRestClient client)
{
return new Request(
HttpMethod.Delete,
Rest.Domain.Accounts,
"/v1/Credentials/AWS/" + options.PathSid + "",
queryParams: options.GetParams()
);
}
/// <summary>
/// Delete a Credential from your account
/// </summary>
/// <param name="options"> Delete Aws parameters </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Aws </returns>
public static bool Delete(DeleteAwsOptions options, ITwilioRestClient client = null)
{
client = client ?? TwilioClient.GetRestClient();
var response = client.Request(BuildDeleteRequest(options, client));
return response.StatusCode == System.Net.HttpStatusCode.NoContent;
}
#if !NET35
/// <summary>
/// Delete a Credential from your account
/// </summary>
/// <param name="options"> Delete Aws parameters </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Aws </returns>
public static async System.Threading.Tasks.Task<bool> DeleteAsync(DeleteAwsOptions options,
ITwilioRestClient client = null)
{
client = client ?? TwilioClient.GetRestClient();
var response = await client.RequestAsync(BuildDeleteRequest(options, client));
return response.StatusCode == System.Net.HttpStatusCode.NoContent;
}
#endif
/// <summary>
/// Delete a Credential from your account
/// </summary>
/// <param name="pathSid"> The unique string that identifies the resource </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> A single instance of Aws </returns>
public static bool Delete(string pathSid, ITwilioRestClient client = null)
{
var options = new DeleteAwsOptions(pathSid);
return Delete(options, client);
}
#if !NET35
/// <summary>
/// Delete a Credential from your account
/// </summary>
/// <param name="pathSid"> The unique string that identifies the resource </param>
/// <param name="client"> Client to make requests to Twilio </param>
/// <returns> Task that resolves to A single instance of Aws </returns>
public static async System.Threading.Tasks.Task<bool> DeleteAsync(string pathSid, ITwilioRestClient client = null)
{
var options = new DeleteAwsOptions(pathSid);
return await DeleteAsync(options, client);
}
#endif
/// <summary>
/// Converts a JSON string into a AwsResource object
/// </summary>
/// <param name="json"> Raw JSON string </param>
/// <returns> AwsResource object represented by the provided JSON </returns>
public static AwsResource FromJson(string json)
{
// Convert all checked exceptions to Runtime
try
{
return JsonConvert.DeserializeObject<AwsResource>(json);
}
catch (JsonException e)
{
throw new ApiException(e.Message, e);
}
}
/// <summary>
/// The unique string that identifies the resource
/// </summary>
[JsonProperty("sid")]
public string Sid { get; private set; }
/// <summary>
/// The SID of the Account that created the resource
/// </summary>
[JsonProperty("account_sid")]
public string AccountSid { get; private set; }
/// <summary>
/// The string that you assigned to describe the resource
/// </summary>
[JsonProperty("friendly_name")]
public string FriendlyName { get; private set; }
/// <summary>
/// The RFC 2822 date and time in GMT when the resource was created
/// </summary>
[JsonProperty("date_created")]
public DateTime? DateCreated { get; private set; }
/// <summary>
/// The RFC 2822 date and time in GMT when the resource was last updated
/// </summary>
[JsonProperty("date_updated")]
public DateTime? DateUpdated { get; private set; }
/// <summary>
/// The URI for this resource, relative to `https://accounts.twilio.com`
/// </summary>
[JsonProperty("url")]
public Uri Url { get; private set; }
private AwsResource()
{
}
}
} | 44.991718 | 124 | 0.566196 | [
"MIT"
] | garethpaul/twilio-csharp | src/Twilio/Rest/Accounts/V1/Credential/AwsResource.cs | 21,731 | C# |
namespace Microsoft.Web.Http.Description
{
using Microsoft.Web.Http.Versioning.Conventions;
using Models;
using Simulators;
using System.Collections;
using System.Collections.Generic;
using System.Web.Http;
using System.Web.Http.Dispatcher;
using static System.Web.Http.RouteParameter;
public class TestConfigurations : IEnumerable<object[]>
{
public IEnumerator<object[]> GetEnumerator()
{
yield return new object[] { NewConventionRouteConfiguration() };
yield return new object[] { NewDirectRouteConfiguration() };
}
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
static HttpConfiguration NewConventionRouteConfiguration()
{
var configuration = new HttpConfiguration();
var controllerTypeResolver = new ControllerTypeCollection(
typeof( ValuesController ),
typeof( Values2Controller ),
typeof( Values3Controller ) );
configuration.Services.Replace( typeof( IHttpControllerTypeResolver ), controllerTypeResolver );
configuration.Routes.MapHttpRoute( "Default", "{controller}/{id}", new { id = Optional } );
configuration.AddApiVersioning(
options =>
{
options.Conventions.Controller<ValuesController>()
.HasApiVersion( 1, 0 );
options.Conventions.Controller<Values2Controller>()
.HasApiVersion( 2, 0 )
.HasDeprecatedApiVersion( 3, 0, "beta" )
.HasApiVersion( 3, 0 )
.Action( c => c.Post( default( ClassWithId ) ) ).MapToApiVersion( 3, 0 );
options.Conventions.Controller<Values3Controller>()
.HasApiVersion( 4, 0 )
.AdvertisesApiVersion( 5, 0 );
} );
return configuration;
}
static HttpConfiguration NewDirectRouteConfiguration()
{
var configuration = new HttpConfiguration();
var controllerTypeResolver = new ControllerTypeCollection(
typeof( AttributeValues1Controller ),
typeof( AttributeValues2Controller ),
typeof( AttributeValues3Controller ) );
configuration.Services.Replace( typeof( IHttpControllerTypeResolver ), controllerTypeResolver );
configuration.MapHttpAttributeRoutes();
configuration.AddApiVersioning();
return configuration;
}
}
} | 42.184615 | 112 | 0.572575 | [
"MIT"
] | lurumad/aspnet-api-versioning | test/Microsoft.AspNet.WebApi.Versioning.ApiExplorer.Tests/Description/TestConfigurations.cs | 2,744 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace user.domain;
public class UserProfile
{
[JsonPropertyName("email")]
public string Email { get; set; }
[JsonPropertyName("role")]
public string Role { get; set; }
[JsonPropertyName("deposit")]
public double Deposit { get; set; }
[JsonPropertyName("givenName")]
public string GivenName { get; set; }
[JsonPropertyName("familyName")]
public string FamilyName { get; set; }
}
| 25.173913 | 42 | 0.704663 | [
"MIT"
] | developersamim/vending-machine | src/services/user/user.domain/UserProfile.cs | 581 | C# |
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using PermissionsService.Data.Repositories;
using PermissionsService.Data.Repositories.Base;
using PermissionsService.Models;
using System.Threading.Tasks;
namespace PermissionsService.Extensions
{
public static class IWebHostExtensions
{
public static async Task<IWebHost> SeedDbAsync(this IWebHost webHost)
{
using (var scope = webHost.Services.CreateScope())
{
var services = scope.ServiceProvider;
var repositoryService = services.GetService<IRepositoryAsync<Permission>>();
var logger = services.GetService<ILogger<IWebHost>>();
if (repositoryService is PermissionRepository permissionsRepo)
{
var any = await permissionsRepo.AnyAsync();
if (!any)
{
// Permissions Ids
const string addUsersPermId = "f4264577-7705-4d4f-835c-4fd0e9d924c0";
const string readNewsPermId = "4a97b484-eefe-43ea-8377-2a3595ef49cd";
const string createGroupsPermId = "6db07cbb-f8e6-41f1-af9b-ed10a78e740f";
const string publishNewsPermId = "e1dfec14-80f2-4f32-bce7-dab3a39fe978";
// Permissions seed
await Task.WhenAll(
permissionsRepo.AddOrReplaceAsync(addUsersPermId, new Permission
{
PermissionId = addUsersPermId,
Name = "AddUsers"
}),
permissionsRepo.AddOrReplaceAsync(readNewsPermId, new Permission
{
PermissionId = readNewsPermId,
Name = "ReadNews"
}),
permissionsRepo.AddOrReplaceAsync(createGroupsPermId, new Permission
{
PermissionId = createGroupsPermId,
Name = "CreateGroups"
}),
permissionsRepo.AddOrReplaceAsync(publishNewsPermId, new Permission
{
PermissionId = publishNewsPermId,
Name = "PublishNews"
})
);
// Vasya Pupkin
await permissionsRepo.AssignPermissionAsync(permissionId: addUsersPermId, userId: "e8a76441-56ce-483c-99f7-2dcbfb39ec21");
await permissionsRepo.AssignPermissionAsync(permissionId: readNewsPermId, userId: "e8a76441-56ce-483c-99f7-2dcbfb39ec21");
await permissionsRepo.AssignPermissionAsync(permissionId: createGroupsPermId, userId: "e8a76441-56ce-483c-99f7-2dcbfb39ec21");
await permissionsRepo.AssignPermissionAsync(permissionId: publishNewsPermId, userId: "e8a76441-56ce-483c-99f7-2dcbfb39ec21");
// Test unassign
//await permissionsRepo.UnassignPermissionAsync(permissionId: createGroupsPermId, userId: "e8a76441-56ce-483c-99f7-2dcbfb39ec21");
//await permissionsRepo.UnassignPermissionAsync(permissionId: publishNewsPermId, userId: "e8a76441-56ce-483c-99f7-2dcbfb39ec21");
// Sasha Ronin
await permissionsRepo.AssignPermissionAsync(permissionId: readNewsPermId, userId: "2229587e-276d-42d0-93c4-fd0e9bd003c7");
await permissionsRepo.AssignPermissionAsync(permissionId: publishNewsPermId, userId: "2229587e-276d-42d0-93c4-fd0e9bd003c7");
logger.LogInformation("--- Seeded the database");
}
}
} // using
return webHost;
} // SeedDb
}
}
| 51.6125 | 154 | 0.553887 | [
"MIT"
] | AlexeyBuryanov/MicroservicesSimpleTask | Source/PermissionsService/Extensions/IWebHostExtensions.cs | 4,131 | C# |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.AzureNative.DomainRegistration.Latest
{
[Obsolete(@"The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-native:domainregistration:listTopLevelDomainAgreements'.")]
public static class ListTopLevelDomainAgreements
{
/// <summary>
/// Collection of top-level domain legal agreements.
/// Latest API Version: 2020-10-01.
/// </summary>
public static Task<ListTopLevelDomainAgreementsResult> InvokeAsync(ListTopLevelDomainAgreementsArgs args, InvokeOptions? options = null)
=> Pulumi.Deployment.Instance.InvokeAsync<ListTopLevelDomainAgreementsResult>("azure-native:domainregistration/latest:listTopLevelDomainAgreements", args ?? new ListTopLevelDomainAgreementsArgs(), options.WithVersion());
}
public sealed class ListTopLevelDomainAgreementsArgs : Pulumi.InvokeArgs
{
/// <summary>
/// If <code>true</code>, then the list of agreements will include agreements for domain transfer as well; otherwise, <code>false</code>.
/// </summary>
[Input("forTransfer")]
public bool? ForTransfer { get; set; }
/// <summary>
/// If <code>true</code>, then the list of agreements will include agreements for domain privacy as well; otherwise, <code>false</code>.
/// </summary>
[Input("includePrivacy")]
public bool? IncludePrivacy { get; set; }
/// <summary>
/// Name of the top-level domain.
/// </summary>
[Input("name", required: true)]
public string Name { get; set; } = null!;
public ListTopLevelDomainAgreementsArgs()
{
}
}
[OutputType]
public sealed class ListTopLevelDomainAgreementsResult
{
/// <summary>
/// Link to next page of resources.
/// </summary>
public readonly string NextLink;
/// <summary>
/// Collection of resources.
/// </summary>
public readonly ImmutableArray<Outputs.TldLegalAgreementResponseResult> Value;
[OutputConstructor]
private ListTopLevelDomainAgreementsResult(
string nextLink,
ImmutableArray<Outputs.TldLegalAgreementResponseResult> value)
{
NextLink = nextLink;
Value = value;
}
}
}
| 37.164384 | 232 | 0.6561 | [
"Apache-2.0"
] | pulumi-bot/pulumi-azure-native | sdk/dotnet/DomainRegistration/Latest/ListTopLevelDomainAgreements.cs | 2,713 | C# |
using UnityEngine;
namespace Toolnity
{
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour
{
private static bool shuttingDown;
private static readonly object Lock = new object();
private static T myInstance;
public static T Instance
{
get
{
if (shuttingDown)
{
Debug.LogWarning("[Singleton] Instance '" + typeof(T) +
"' already destroyed. Returning null.");
return null;
}
if (myInstance != null)
{
return myInstance;
}
lock (Lock)
{
myInstance = (T) FindObjectOfType(typeof(T));
if (myInstance != null)
{
return myInstance;
}
var singletonObject = new GameObject();
var tmpInstance = singletonObject.AddComponent<T>();
singletonObject.name = "[Singleton] " + typeof(T);
DontDestroyOnLoad(singletonObject);
myInstance = tmpInstance; // ensure myInstance is never partially initiated
return myInstance;
}
}
}
private void Awake()
{
DontDestroyOnLoad(gameObject);
OnSingletonAwake();
}
protected virtual void OnSingletonAwake()
{
}
private void OnApplicationQuit()
{
shuttingDown = true;
}
private void OnDestroy()
{
shuttingDown = true;
OnSingletonDestroy();
}
protected virtual void OnSingletonDestroy()
{
}
}
} | 18.328767 | 80 | 0.635277 | [
"Unlicense"
] | DTeruel/Toolnity | Runtime/Misc/Singleton.cs | 1,340 | C# |
// ***********************************************************************
// Assembly : IronyModManager.Parser
// Author : Mario
// Created : 02-16-2020
//
// Last Modified By : Mario
// Last Modified On : 02-13-2021
// ***********************************************************************
// <copyright file="DIPackage.cs" company="Mario">
// Mario
// </copyright>
// <summary></summary>
// ***********************************************************************
using System;
using System.Collections.Generic;
using IronyModManager.DI.Extensions;
using IronyModManager.Parser.Common;
using IronyModManager.Parser.Common.DLC;
using IronyModManager.Parser.Common.Mod;
using IronyModManager.Parser.Common.Parsers;
using IronyModManager.Parser.Common.Parsers.Models;
using IronyModManager.Parser.Default;
using IronyModManager.Parser.Definitions;
using IronyModManager.Parser.DLC;
using IronyModManager.Parser.Games.Stellaris;
using IronyModManager.Parser.Generic;
using IronyModManager.Parser.Mod;
using IronyModManager.Parser.Models;
using IronyModManager.Shared;
using IronyModManager.Shared.Models;
using SimpleInjector;
using SimpleInjector.Packaging;
namespace IronyModManager.Parser
{
/// <summary>
/// Class DIPackage.
/// Implements the <see cref="SimpleInjector.Packaging.IPackage" />
/// </summary>
/// <seealso cref="SimpleInjector.Packaging.IPackage" />
[ExcludeFromCoverage("Should not test external DI.")]
public class DIPackage : IPackage
{
#region Methods
/// <summary>
/// Registers the set of services in the specified <paramref name="container" />.
/// </summary>
/// <param name="container">The container the set of services is registered into.</param>
public void RegisterServices(Container container)
{
container.Register<IDefinition, Definition>();
container.Register<IIndexedDefinitions, IndexedDefinitions>();
container.RemoveTransientWarning<IIndexedDefinitions>();
container.Collection.Register(typeof(IDefaultParser), new List<Type>()
{
typeof(DefaultParser)
});
container.Collection.Register(typeof(IGenericParser), new List<Type>()
{
typeof(BinaryParser), typeof(DefinesParser), typeof(GraphicsParser),
typeof(KeyParser), typeof(LocalizationParser), typeof(Generic.WholeTextParser)
});
container.Collection.Register(typeof(IGameParser), new List<Type>
{
typeof(FlagsParser), typeof(SolarSystemInitializersParser), typeof(Games.Stellaris.WholeTextParser),
typeof(OverwrittenParser), typeof(ScriptedVariablesParser)
});
container.Register<IParserManager, ParserManager>();
container.Register<IModObject, ModObject>();
container.Register<IModParser, ModParser>();
container.Register<ICodeParser, CodeParser>();
container.Register<IHierarchicalDefinitions, HierarchicalDefinitions>();
container.Register<IParserMap, ParserMap>();
container.Register<IScriptElement, ScriptElement>();
container.Register<IScriptError, ScriptError>();
container.Register<IParseResponse, ParseResponse>();
container.Register<IDLCParser, DLCParser>();
container.Register<IDLCObject, DLCObject>();
}
#endregion Methods
}
}
| 41.517647 | 116 | 0.634741 | [
"MIT"
] | SANagisa/IronyModManager | src/IronyModManager.Parser/DIPackage.cs | 3,531 | C# |
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Text;
public class Generator : ElectricalObject, IElectricitySupplier
{
public override IShape Shape { get { return _shape; } }
public float MaxCharge { get { return 1000000; } }
public float CurrentCharge { get; set; }
private SquareShape _shape;
private void Awake()
{
_shape = new SquareShape(this, transform.localScale);
CurrentCharge = MaxCharge;
}
public override void Start()
{
Grid = new ElectricityGrid();
Grid.Add(this);
base.Start();
}
public override string GetInformationString()
{
StringBuilder builder = new StringBuilder();
builder.Append("CurrentCharge: ");
builder.Append(CurrentCharge.ToString("N0"));
builder.AppendLine();
builder.Append(base.GetInformationString());
return builder.ToString();
}
}
| 24.309524 | 64 | 0.628795 | [
"MIT"
] | DanielEverland/Dead-Air-Blueprint-Prototype | Assets/Scripts/Electricity/Generator.cs | 1,023 | C# |
/*Created by Layla aka Galantha
* MIT license
* no warranty
*
* Copyright 2020-12-27
*
* email: gal_0xff@outlook.com
*/
using System;
using System.Windows.Forms;
namespace GalsPassHolder
{
static class GalInputDialog
{
public static DialogResult Show(out String answer, Form parent, string question, string title = "?", string fontName = "Microsoft Sans Serif", bool isPasswordInput = false)
{
var dialog = new Dialog(question, title, parent, fontName, isPasswordInput);
DialogResult result = dialog.ShowDialog(parent);
answer = dialog.Value;
dialog.Dispose();
return result;
}
private class Dialog : Form
{
private readonly TextBox txtInput = new TextBox();
private readonly Label lblQuestionMark = new Label() { Text = "?" };
private readonly Button btnOk = new Button() { Text = "Ok", DialogResult = DialogResult.OK };
private readonly Button btnCancel = new Button() { Text = "Cancel", DialogResult = DialogResult.Cancel };
private readonly Label lblQuestion = new Label();
private readonly TableLayoutPanel tbllyoPanel = new TableLayoutPanel();
public string Value
{
get { return txtInput.Text; }
set { txtInput.Text = value; }
}
private const double defaultWidth = 300;
private const double defaultHeight = (defaultWidth / 16) * 9;
private const double defaultFontSize = 10;
private readonly string defaultFontName;
public Dialog(String question, String title, Form parentForm, String defaultFontName, bool isPasswordInput) : base()
{
//this.Parent = parentForm;
this.Text = title;
this.FormBorderStyle = FormBorderStyle.SizableToolWindow;
this.Width = Convert.ToInt32(parentForm.Width / 2);
if (this.Width < defaultWidth) this.Width = Convert.ToInt32(defaultWidth);
this.Height = Width / 16 * 9;
this.ControlBox = false;
this.StartPosition = FormStartPosition.CenterParent;
this.Resize += (object a, EventArgs b) => FormResized();
this.Controls.Add(tbllyoPanel);
this.defaultFontName = defaultFontName;
this.DialogResult = DialogResult.Cancel;
lblQuestion.Text = question;
txtInput.UseSystemPasswordChar = isPasswordInput;
//no with statement in C# :(
{ //"with"
var w = tbllyoPanel;
w.ColumnCount = 3;
w.RowCount = 3;
for (int i = 0; i < w.RowCount; i++)
w.RowStyles.Add(new RowStyle(SizeType.Percent, 100 / w.RowCount));
w.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 15));
w.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 35));
w.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50));
w.Controls.Add(lblQuestion);
w.Controls.Add(lblQuestionMark);
w.Controls.Add(txtInput);
w.Controls.Add(btnCancel);
w.Controls.Add(btnOk);
w.SetColumn(lblQuestionMark, 0);
w.SetRow(lblQuestionMark, 0);
w.SetRowSpan(lblQuestionMark, 2);
w.SetColumn(lblQuestion, 1);
w.SetRow(lblQuestion, 0);
w.SetColumnSpan(lblQuestion, 2);
w.SetColumn(txtInput, 1);
w.SetRow(txtInput, 1);
w.SetColumnSpan(txtInput, 2);
w.SetColumn(btnOk, 0);
w.SetRow(btnOk, 2);
w.SetColumnSpan(btnOk, 2);
w.SetColumn(btnCancel, 2);
w.SetRow(btnCancel, 2);
} //w goes out of scope here
btnOk.Click += (object a, EventArgs b) => OkClick();
btnCancel.Click += (object a, EventArgs b) => CancelClick();
txtInput.TextChanged += (object a, EventArgs b) => TxtInputChanged();
GalFormFunctions.RecursiveSetProperty<DockStyle>(this, "Dock", DockStyle.Fill);
GalFormFunctions.RecursiveSetProperty<System.Drawing.ContentAlignment>(this, "TextAlign", System.Drawing.ContentAlignment.MiddleCenter);
lblQuestion.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
//lblQuestionMark.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
TxtInputChanged();
FormResized();
}
private void OkClick()
{
this.DialogResult = DialogResult.OK;
this.Close();
}
private void CancelClick()
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
private void FormResized()
{
var xMultiplier = this.Width / defaultWidth;
var yMultiplier = this.Height / defaultHeight;
double multiplier;
if (xMultiplier < yMultiplier)
multiplier = xMultiplier;
else
multiplier = yMultiplier;
float fontSize = Convert.ToSingle(defaultFontSize * multiplier);
var font = new System.Drawing.Font(defaultFontName, fontSize);
GalFormFunctions.RecursiveSetProperty<System.Drawing.Font>(this, "Font", font);
lblQuestionMark.Font = new System.Drawing.Font(defaultFontName, fontSize * 3);
}
private void TxtInputChanged()
{
if (txtInput.Text.Length > 0)
{
btnOk.Enabled = true;
this.AcceptButton = btnOk;
}
else
{
btnOk.Enabled = false;
this.AcceptButton = btnCancel;
}
}
}
}
static class GalFormFunctions
{
public static readonly IFormatProvider inv = System.Globalization.CultureInfo.InvariantCulture;
public static void RecursiveSetProperty<T>(Control ctr, String property, T propertyValue, System.Collections.Generic.List<Type> includeOnlyTypes = null, System.Collections.Generic.List<Type> excludeTypes = null, System.Collections.Generic.List<Control> excludeControls = null)
{
System.Windows.Forms.Control.ControlCollection controls = null;
controls = ctr.Controls;
foreach (Control childControl in controls)
RecursiveSetProperty<T>(childControl, property, propertyValue, includeOnlyTypes, excludeTypes, excludeControls);
Type type = ctr.GetType();
if ((includeOnlyTypes == null || includeOnlyTypes.Contains(type)) && (excludeTypes == null || !excludeTypes.Contains(type)) && (excludeControls == null || !excludeControls.Contains(ctr)))
SetPropertyIfExists<T>(ctr, property, propertyValue);
}
public static void SetPropertyIfExists<T>(Control ctr, String property, T propertyValue)
{
var prop = ctr.GetType().GetProperty(property);
if (propertyValue.GetType().Name == "Font")
{
var oldFont = (System.Drawing.Font)prop.GetValue(ctr);
var newFont = (System.Drawing.Font)(object)propertyValue;
if (newFont.Height != oldFont.Height || newFont.Unit != oldFont.Unit || newFont.Name != oldFont.Name || newFont.Size != oldFont.Size || newFont.Style != oldFont.Style)
prop.SetValue(ctr, propertyValue);
}
else
{
if (prop != null && prop.PropertyType == propertyValue.GetType())
prop.SetValue(ctr, propertyValue); //this frequently triggers events
}
}
private static readonly System.Collections.Generic.List<string> ControlValuesTypeNamesSupported = new System.Collections.Generic.List<string>(new string[] { "TextBox", "NumericUpDown", "CheckBox" });
public enum Direction
{
save,
load
}
public static void ControlValuesToFromDT(Direction direction, string prefix, Control ctr, System.Data.DataTable dt, bool recursive = true, System.Collections.Generic.List<string> typeNames = null, string dbFieldName = "name", string dbFieldValue = "value")
{
if (typeNames is null)
typeNames = ControlValuesTypeNamesSupported;
var myPrefix = prefix + "-" + ctr.Name + "As" + ctr.GetType().Name;
string typeName = ctr.GetType().Name;
if (ControlValuesTypeNamesSupported.Contains(typeName))
switch (typeName)
{
case "TextBox":
var txt = (TextBox)ctr;
if (direction == Direction.save)
SaveToDT(dt, myPrefix, txt.Text, dbFieldName, dbFieldValue);
else
txt.Text = GetFromDT(dt, myPrefix, txt.Text, dbFieldName, dbFieldValue);
break;
case "NumericUpDown":
var num = (NumericUpDown)ctr;
if (direction == Direction.save)
SaveToDT(dt, myPrefix, num.Value.ToString(inv), dbFieldName, dbFieldValue);
else
num.Value = Convert.ToDecimal(GetFromDT(dt, myPrefix, num.Value.ToString(inv), dbFieldName, dbFieldValue), inv);
break;
case "CheckBox":
var chk = (CheckBox)ctr;
if (direction == Direction.save)
SaveToDT(dt, myPrefix, chk.Checked.ToString(inv), dbFieldName, dbFieldValue);
else
chk.Checked = Convert.ToBoolean(GetFromDT(dt, myPrefix, chk.Checked.ToString(inv), dbFieldName, dbFieldValue), inv);
break;
default:
throw new Exception("unhandled type" + typeName);
}
if (recursive)
foreach (Control child in ctr.Controls)
ControlValuesToFromDT(direction, myPrefix, child, dt, recursive, typeNames, dbFieldName, dbFieldValue);
}
private static void SaveToDT(System.Data.DataTable dt, string name, string value, string dbFieldName = "name", string dbFieldValue = "value")
{
lock (dt)
{
var rows = dt.Select(dbFieldName + "='" + name + "'");
if (rows.Length > 0)
{
//found existing row
var row = rows[0];
row[dbFieldValue] = value;
dt.AcceptChanges();
}
else
{
//make new row
var row = dt.NewRow();
row[dbFieldName] = name;
row[dbFieldValue] = value;
dt.Rows.Add(row);
dt.AcceptChanges();
}
}
}
private static string GetFromDT(System.Data.DataTable dt, string name, string defaultValue = "", string dbFieldName = "name", string dbFieldValue = "value")
{
lock (dt)
{
var rows = dt.Select(dbFieldName + "='" + name + "'");
if (rows.Length > 0)
{
//found a record
var row = rows[0];
return (string)row[dbFieldValue];
}
else
{
//return default value
return defaultValue;
}
}
}
public static bool CheckForValidDataGridViewRow(DataGridViewRow row, bool verifyStringColsNotEmpty = true)
{
if (row is null)
return false;
foreach (DataGridViewCell cell in row.Cells)
if (!VerifyDataGridViewRowCell(cell))
return false;
try
{
if (row.DataBoundItem is null)
return false;
}
catch (System.IndexOutOfRangeException) //not a fan of this :\, but I need to do the null check
{
return false;
}
return true;
}
public static bool VerifyDataGridViewRowCell(DataGridViewCell cell, bool verifyStringNotEmpty = true)
{
if (cell is null || cell.Value == null || Convert.IsDBNull(cell.Value))
return false;
else if (verifyStringNotEmpty)
{
var typeName = cell.Value.GetType().Name.Trim().ToLower();
switch (typeName)
{
case "string":
if (string.IsNullOrWhiteSpace((string)cell.Value))
return false;
break;
default:
//no nothing
break;
}
}
return true;
}
}
}
| 42.058282 | 284 | 0.523813 | [
"MIT"
] | Galantha/GalanthasEncryptedNotes | GalDialogs.cs | 13,713 | C# |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections;
using System.Globalization;
using System.Resources;
namespace GitHub.VisualStudio.TestAutomation
{
[TestClass]
public class ResourceValueTest
{
[TestMethod]
public void ValueAndNameAreTheSame()
{
ResourceSet autoIDResourceSet = AutomationIDs.ResourceManager.GetResourceSet(CultureInfo.CurrentUICulture, true, true);
foreach (DictionaryEntry entry in autoIDResourceSet)
{
var key = entry.Key.ToString();
var value = entry.Value.ToString();
Assert.AreEqual(value, key);
}
}
[TestMethod]
public void CheckStrongNamed()
{
var assemblyName = typeof(AutomationIDs).Assembly.GetName();
var publicKey = assemblyName.GetPublicKey();
Assert.AreNotEqual(0, publicKey.Length, "The extension requires this assembly to be signed");
}
}
} | 30.848485 | 131 | 0.637525 | [
"MIT"
] | editor-tools/GitHubVSTestAutomationIDs | GithubVSTestAutomationIDs.Tests/ResourceValueTests.cs | 1,020 | C# |
using MacomberMapClient.Data_Elements.Physical;
using MacomberMapClient.Properties;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MacomberMapClient.User_Interfaces.OneLines
{
/// <summary>
/// This class provides the synchroscope display
/// </summary>
public partial class MM_OneLine_Synchroscope : UserControl
{
#region Variable declarations
/// <summary>Number of time slots</summary>
private const int TMax = 4;
private int Tmr, _Tmr;
private float[] FreqI = new float[TMax];
private float[] FreqZ = new float[TMax];
private float[] VoltI = new float[TMax];
private float[] VoltZ = new float[TMax];
private float[] PhaseI = new float[TMax];
private float[] PhaseZ = new float[TMax];
public float[] PhaseDifferential = new float[TMax];
/// <summary>The state of our synchroscope</summary>
private enumSynchroscopeState State = enumSynchroscopeState.Unknown;
/// <summary>The element associated with the control panel</summary>
public MM_Breaker_Switch BreakerSwitch;
/// <summary>The near node, for naming purposes</summary>
public MM_Node NearNode;
/// <summary>The far node, for naming purposes</summary>
public MM_Node FarNode;
/// <summary>Our generator bus</summary>
public MM_Bus GeneratorBus = null;
/// <summary>Our generator island</summary>
public MM_Island GeneratorIsland = null;
#endregion
#region Enumerations
/// <summary>The collection of states of the synchroscope</summary>
public enum enumSynchroscopeState
{
/// <summary>State is not yet known/initialized</summary>
Unknown = 0,
/// <summary>The nodes of the breaker are on the same island</summary>
SameIsland = 1,
/// <summary>The nodes of the breaker are on different islands</summary>
DifferentIsland = 2,
/// <summary>Data is missing from the near node side</summary>
DataMissingNear = 3,
/// <summary>Data is missing from the far node side</summary>
DataMissingFar = 4,
/// <summary>Data is missing from the both sides</summary>
DataMissingBoth = 5,
/// <summary>The unit breaker going from open to close</summary>
BreakerOpenToClose = 6,
/// <summary>The unit breaker going from close to open</summary>
BreakerCloseToOpen = 7
}
#endregion
#region Initialization
/// <summary>
/// Initialize a new synchroscope
/// </summary>
public MM_OneLine_Synchroscope()
{
InitializeComponent();
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
}
/// <summary>
/// Initialize a new synchroscope display
/// </summary>
/// <param name="BreakerSwitch"></param>
/// <param name="NearNode"></param>
/// <param name="FarNode"></param>
public MM_OneLine_Synchroscope(MM_Breaker_Switch BreakerSwitch, MM_Node NearNode, MM_Node FarNode): this()
{
AssignSynchroscope(BreakerSwitch, NearNode, FarNode);
}
/// <summary>
/// Assign our synchroscope
/// </summary>
/// <param name="BreakerSwitch"></param>
/// <param name="NearNode"></param>
/// <param name="FarNode"></param>
public void AssignSynchroscope(MM_Breaker_Switch BreakerSwitch, MM_Node NearNode, MM_Node FarNode)
{
this.BreakerSwitch=BreakerSwitch;
this.NearNode = NearNode;
this.FarNode = FarNode;
}
/// <summary>
/// Assign our synchroscope
/// </summary>
/// <param name="GeneratorBus"></param>
/// <param name="GeneratorIsland"></param>
public void AssignSynchroscope(MM_Bus GeneratorBus, MM_Island GeneratorIsland)
{
this.GeneratorBus = GeneratorBus;
this.GeneratorIsland = GeneratorIsland;
}
/// <summary>
/// Assign our synchroscope
/// </summary>
/// <param name="GeneratorBus"></param>
/// <param name="GeneratorIsland"></param>
/// <param name="TimeReference"></param>
public void AssignSynchroscope(MM_Bus GeneratorBus, MM_Island GeneratorIsland, DateTime TimeReference)
{
AssignSynchroscope(GeneratorBus, GeneratorIsland);
}
#endregion
#region Synchroscope rendering
/// <summary>
/// Draw our synchroscope
/// </summary>
/// <param name="g"></param>
/// <param name="Rect"></param>
/// <param name="AngularDifference"></param>
public static void DrawSynchroscope(Graphics g, Rectangle Rect, double AngularDifference)
{
g.DrawImage(Resources.SynchroscopeHiRes, Rect);
PointF Center = new PointF(Rect.Left + 1 + (Rect.Width / 2), Rect.Top + (Rect.Height / 2) - 2);
double Radius = Rect.Width * 0.48;
if (!double.IsNaN(AngularDifference))
{
while (AngularDifference >= 360)
AngularDifference -= 360;
while (AngularDifference < 0)
AngularDifference += 360;
g.FillPolygon(Brushes.Black, new PointF[] {
Offset(10, AngularDifference-45, Rect),
Offset(Radius-12,AngularDifference,Rect),
Offset(10,AngularDifference+45,Rect),
Offset(10,AngularDifference,Rect)
});
//Draw our Synch lamp
double SinAmplitude = AngularDifference < 270 && AngularDifference > 90 ? Math.Abs(Math.Sin((180 + AngularDifference) * Math.PI / 180.0)) : 1;
int z = (int)(SinAmplitude * 255);
Rectangle SyncRectangle = new Rectangle(Rect.Left, Rect.Bottom - 26, 25, 25);
using (SolidBrush DrawBrush = new SolidBrush(Color.FromArgb(255 - z, 255 - z, 0)))
g.FillEllipse(DrawBrush, SyncRectangle);
g.DrawEllipse(Pens.Gray, SyncRectangle);
}
}
/// <summary>
/// Paint the synchroscope
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void Synchroscope_Paint(object sender, PaintEventArgs e)
{
DrawSynchroscope(e.Graphics, Synchroscope.DisplayRectangle, PhaseDifferential[Tmr]);
}
/// <summary>
/// Offset a point against angle/radius
/// </summary>
/// <param name="Radius"></param>
/// <param name="Angle"></param>
private PointF Offset(float Radius, float Angle)
{
return new PointF(
(Radius * -(float)Math.Cos(Math.PI * (Angle + 90) / 180f)) + (Synchroscope.ClientRectangle.Width / 2f),
(Radius * -(float)Math.Sin(Math.PI * (Angle + 90) / 180f)) + (Synchroscope.ClientRectangle.Height / 2f));
}
/// <summary>
/// Offset a point against angle/radius
/// </summary>
/// <param name="Radius"></param>
/// <param name="Angle"></param>
/// <param name="Rect"></param>
private static PointF Offset(double Radius, double Angle, Rectangle Rect)
{
return new PointF(
(float)(Radius * -Math.Cos(Math.PI * (Angle + 90) / 180f)) + (Rect.Width / 2f),
(float)(Radius * -Math.Sin(Math.PI * (Angle + 90) / 180f)) + (Rect.Height / 2f));
}
/// <summary>
/// Calculate the phase angle based on the current phase, frequency and dt
/// </summary>
/// <param name="Phase"></param>
/// <param name="Frequency"></param>
private float CalculatePhase(float Phase, float Frequency)
{
float _Phase = Modd(Phase + (360f * (Frequency - 60f) * ((float)tmrUpdate.Interval / 1000f)), 360f);
if (float.IsNaN(_Phase))
return 0;
while (_Phase < 0)
_Phase += 360;
return _Phase;
}
/// <summary>
/// Calculate the phase angle based on the current phase, frequency and dt
/// </summary>
/// <param name="Phase"></param>
/// <param name="Frequency"></param>
/// <param name="UpdateInterval"></param>
public static double CalculatePhase(double Phase, double Frequency, double UpdateInterval)
{
double _Phase = Modd(Phase + (360.0 * (Frequency - 60.0) * (UpdateInterval / 1000.0)), 360.0);
while (_Phase < 0.0)
_Phase += 360.0;
return _Phase;
}
/// <summary>
/// Perform the mod function while allowing for decimal values
/// </summary>
/// <param name="a"></param>
/// <param name="b"></param>
private static float Modd(float a, float b)
{
return a - (b * ((int)(a/b)));
}
/// <summary>
/// Perform the mod function while allowing for decimal values
/// </summary>
/// <param name="a"></param>
/// <param name="b"></param>
private static double Modd(double a, double b)
{
return a - (b * ((int)(a / b)));
}
/// <summary>
/// Write a text label
/// </summary>
/// <param name="g"></param>
/// <param name="Radius"></param>
/// <param name="Angle"></param>
/// <param name="Text"></param>
private void WriteText(Graphics g, float Radius, float Angle, String Text)
{
using (StringFormat sF = new StringFormat())
{
sF.LineAlignment = sF.Alignment = StringAlignment.Center;
g.DrawString(Text, this.Font, Brushes.White, Offset(Radius, Angle), sF);
}
}
#endregion
#region Label/breaker image rendering
/// <summary>
/// Handle the painting of the breaker
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void LabelCB_Paint(object sender, PaintEventArgs e)
{
if (BreakerSwitch == null)
return;
MM_KVLevel KVLevel = BreakerSwitch.KVLevel;
//Draw our breaker
using (Pen DrawPen = new Pen(KVLevel.Energized.ForeColor))
using (Brush BackBrush = new SolidBrush(LabelCB.BackColor))
using (Font DrawFont = new Font("Arial", 13, FontStyle.Bold))
{
Point Center = new Point(LabelCB.ClientRectangle.Width / 2, LabelCB.ClientRectangle.Height - 12);
Rectangle DrawRect = new Rectangle(Center.X - 10, Center.Y - 10, 20, 20);
bool Opened = BreakerSwitch.Open;
Pen NearPen = new Pen(KVLevel.Energized.ForeColor, 3);
Pen FarPen = new Pen(KVLevel.Energized.ForeColor, 3);
if (Opened)
{
e.Graphics.DrawRectangle(DrawPen, DrawRect);
e.Graphics.DrawString("O", DrawFont, DrawPen.Brush, DrawRect, MM_OneLine_Element.CenterFormat);
}
else if (BreakerSwitch.BreakerState == MM_Breaker_Switch.BreakerStateEnum.Closed)
{
e.Graphics.FillRectangle(DrawPen.Brush, DrawRect);
e.Graphics.DrawString("C", DrawFont, BackBrush, DrawRect, MM_OneLine_Element.CenterFormat);
}
else
{
e.Graphics.DrawRectangle(DrawPen, DrawRect);
e.Graphics.DrawString("?", DrawFont, DrawPen.Brush, DrawRect, MM_OneLine_Element.CenterFormat);
}
if (State == enumSynchroscopeState.DataMissingNear || State == enumSynchroscopeState.DataMissingBoth)
{
NearPen.Color = Color.Gray;
NearPen.Width = 1;
NearPen.DashStyle = DashStyle.Dash;
}
if (State == enumSynchroscopeState.DataMissingFar || State == enumSynchroscopeState.DataMissingBoth)
{
FarPen.Color = Color.Gray;
FarPen.Width = 1;
FarPen.DashStyle = DashStyle.Dash;
}
e.Graphics.DrawLine(NearPen, 0, Center.Y, DrawRect.Left, Center.Y);
e.Graphics.DrawLine(FarPen, DrawRect.Right, Center.Y, LabelCB.ClientRectangle.Width, Center.Y);
NearPen.Dispose();
FarPen.Dispose();
e.Graphics.DrawString(NearNode.Name, this.Font, Brushes.White, Point.Empty);
using (StringFormat sF = new StringFormat())
{
sF.Alignment = StringAlignment.Far;
e.Graphics.DrawString(FarNode.Name, this.Font, Brushes.White, LabelCB.Width, 0, sF);
}
}
}
#endregion
#region Waveform generation
/// <summary>
/// Draw the waveform of what our synchroscope is seeing
/// </summary>
/// <param name="g"></param>
/// <param name="Rect"></param>
public void DrawWaveform(Graphics g, Rectangle Rect)
{
g.Clear(Color.Black);
//Create our image to display our waveform
using (Bitmap DrawBitmap = new Bitmap(Rect.Width, Rect.Height, PixelFormat.Format24bppRgb))
using (Font DrawFont = new Font("Arial", 7))
try
{
//Determine our references
double FrequencyReference = 30.0;
double VoltageReference = Math.Max(VoltI[Tmr], VoltZ[Tmr]);
BitmapData BitmapData = DrawBitmap.LockBits(new Rectangle(0, 0, Rect.Width, Rect.Height), ImageLockMode.WriteOnly, DrawBitmap.PixelFormat);
int FontSize = (int)g.MeasureString("+" + VoltageReference.ToString("0.0"), DrawFont).Width;
Rectangle RenderRect = new Rectangle(Rect.Left + FontSize, Rect.Top, Rect.Width - FontSize, Rect.Height - 5);
//Let's start with a 60Hz reference. We're going to show two waveforms
double X1Mult = 2 * (FreqI[Tmr] / FrequencyReference) * Math.PI / RenderRect.Width;
double X1Add = (180.0 + PhaseI[Tmr]) * Math.PI / 180.0;
double Y1Mult = VoltI[Tmr] / VoltageReference;
double Y2Mult = VoltZ[Tmr] / VoltageReference;
double X2Mult = 2 * (FreqZ[Tmr] / FrequencyReference) * Math.PI / RenderRect.Width;
double X2Add = (180.0 + PhaseZ[Tmr]) * Math.PI / 180.0;
for (double x = 0; x < RenderRect.Width; x += .125)
unsafe
{
int y1 = (int)(((Math.Sin(x * X1Mult + X1Add) * Y1Mult) + 1.0) * (RenderRect.Height - 1) / 2.0) + RenderRect.Top;
byte* Row1 = (byte*)BitmapData.Scan0 + ((int)y1 * BitmapData.Stride);
Row1[(int)(x + RenderRect.Left) * 3 + 2] = 255;
int y2 = (int)(((Math.Sin(x * X2Mult + X2Add) * Y2Mult) + 1.0) * (RenderRect.Height - 1) / 2.0) + RenderRect.Top;
byte* Row2 = (byte*)BitmapData.Scan0 + ((int)y2 * BitmapData.Stride);
Row2[(int)(x + RenderRect.Left) * 3 + 1] = 255;
}
DrawBitmap.UnlockBits(BitmapData);
g.DrawImageUnscaled(DrawBitmap, Point.Empty);
g.DrawLine(Pens.DarkGray, RenderRect.Left, RenderRect.Top, RenderRect.Left, RenderRect.Bottom);
int MiddleRender = RenderRect.Top + (RenderRect.Height / 2);
g.DrawLine(Pens.DarkGray, RenderRect.Left, MiddleRender, RenderRect.Right, MiddleRender);
g.DrawString("+" + VoltageReference.ToString("0.0"), DrawFont, Brushes.White, PointF.Empty);
g.DrawString("0", DrawFont, Brushes.White, 0, RenderRect.Top + (RenderRect.Height - DrawFont.Height) / 2);
g.DrawString("-" + VoltageReference.ToString("0.0"), DrawFont, Brushes.White, 0, RenderRect.Bottom - DrawFont.Height);
}
catch { }
}
#endregion
#region Updating
/// <summary>
/// Handle the timer tick
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void tmrUpdate_Tick(object sender, EventArgs e)
{
if (BreakerSwitch == null)
return;
try
{
_Tmr = Tmr;
Tmr = (Tmr + 1) % TMax;
//If we have a generator bus, let's use that
if (GeneratorBus != null)
{
FreqI[Tmr] = GeneratorIsland.Frequency;
VoltI[Tmr] = GeneratorBus.Estimated_kV;
}
else
{
FreqI[Tmr] = BreakerSwitch.NearIsland == null ? 60 : BreakerSwitch.NearIsland.Frequency;
VoltI[Tmr] = BreakerSwitch.NearBus == null ? 0 : BreakerSwitch.NearBus.Estimated_kV;
}
if (BreakerSwitch.FarBus != null && BreakerSwitch.FarIsland != null)
{
FreqZ[Tmr] = BreakerSwitch.FarIsland == null ? 60 : BreakerSwitch.FarIsland.Frequency;
VoltZ[Tmr] = BreakerSwitch.FarBus == null ? 0 : BreakerSwitch.FarBus.Estimated_kV;
}
else
{
FreqZ[Tmr] = BreakerSwitch.NearIsland == null ? 60 : BreakerSwitch.NearIsland.Frequency;
VoltZ[Tmr] = BreakerSwitch.NearBus == null ? 0 : BreakerSwitch.NearBus.Estimated_kV;
}
PhaseI[Tmr] = CalculatePhase(PhaseI[_Tmr], FreqI[_Tmr]);
PhaseZ[Tmr] = CalculatePhase(PhaseZ[_Tmr], FreqZ[_Tmr]);
if (State == enumSynchroscopeState.SameIsland)
{
if (PhaseZ[Tmr] != PhaseI[Tmr])
PhaseZ[Tmr] = PhaseI[Tmr];
}
if (VoltI[Tmr] == 0 | VoltZ[Tmr] == 0 || FreqI[Tmr] < 0 || FreqZ[Tmr] < 0)
PhaseDifferential[Tmr] = float.NaN;
else if (FreqI[Tmr] < 57 || FreqZ[Tmr] < 57 || State == enumSynchroscopeState.BreakerOpenToClose)
PhaseDifferential[Tmr] = 0;
else
PhaseDifferential[Tmr] = PhaseI[Tmr] - PhaseZ[Tmr];
Synchroscope.Refresh();
}
catch { }
}
#endregion
#region Double-buffered panel to improve synchroscope rendering
/// <summary>
/// This class provides a synchroscope panel with built-in double buffering
/// </summary>
internal class DoubleBufferedPanel : Panel
{
/// <summary>
/// Initialiize a double-buffered panel
/// </summary>
public DoubleBufferedPanel()
{
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
}
}
#endregion
/// <summary>
/// Every second, update our labels
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void tmrUpdateLabels_Tick(object sender, EventArgs e)
{
try
{
//Start the timer if needed
if (!tmrUpdate.Enabled)
tmrUpdate.Enabled = true;
if (BreakerSwitch == null)
return;
MM_Bus NearBus = BreakerSwitch.NearBus;
MM_Bus FarBus = BreakerSwitch.FarBus;
//Determine the state of our system
if (float.IsNaN(FreqI[0]) && float.IsNaN(FreqZ[0]))
State = enumSynchroscopeState.DataMissingBoth;
else if (float.IsNaN(FreqI[0]) || FreqI[0] == 0)
State = enumSynchroscopeState.DataMissingNear;
else if (float.IsNaN(FreqZ[0]) || FreqZ[0] == 0)
State = enumSynchroscopeState.DataMissingFar;
else if (NearBus == null || FarBus == null)
State = enumSynchroscopeState.DifferentIsland;
else if (NearBus != null && FarBus != null && NearBus.IslandNumber != FarBus.IslandNumber)
State = enumSynchroscopeState.DifferentIsland;
else if (NearBus != null && FarBus != null && NearBus.IslandNumber == FarBus.IslandNumber)
State = (!BreakerSwitch.Open) ? enumSynchroscopeState.SameIsland : enumSynchroscopeState.BreakerOpenToClose;
else
State = enumSynchroscopeState.Unknown;
//Update the labels
LabelStation.Text = BreakerSwitch.Substation.Name;
LabelCBID.Text = BreakerSwitch.Name;
if (State == enumSynchroscopeState.DataMissingNear || State == enumSynchroscopeState.DataMissingBoth)
{
LabelFreqI.Text = "--";
LabelKVI.Text = "--";
}
else
{
if (State == enumSynchroscopeState.DifferentIsland)
{
LabelFreqI.Text = FreqI[0].ToString("0.000°");
LabelKVI.Text = GeneratorBus != null ? GeneratorBus.Estimated_kV.ToString("0.00") : NearBus == null ? VoltI[Tmr].ToString("0.00") : NearBus.Estimated_kV.ToString("0.00");
}
else if (State == enumSynchroscopeState.SameIsland)
{
LabelFreqI.Text = FreqZ[0].ToString("0.000°");
LabelKVI.Text = (NearBus == null || NearBus.Estimated_kV <= 1) ? VoltI[Tmr].ToString("0.00") : NearBus.Estimated_kV.ToString("0.00");
}
}
if (State == enumSynchroscopeState.DataMissingFar || State == enumSynchroscopeState.DataMissingBoth)
{
LabelFreqZ.Text = "--";
LabelKVZ.Text = "--";
}
else
{
LabelFreqZ.Text = FreqZ[0].ToString("0.000°");
LabelKVZ.Text = (FarBus == null || FarBus.Estimated_kV <= 1) ? VoltZ[Tmr].ToString("0.00") : FarBus.Estimated_kV.ToString("0.00");
}
if (State == enumSynchroscopeState.SameIsland || State == enumSynchroscopeState.DifferentIsland)
LabelPhaseDiff.Text = (NearBus != null && FarBus != null) ? (NearBus.Island.Frequency - FarBus.Island.Frequency).ToString("0.000°") : (FreqI[0] - FreqZ[0]).ToString("0.000°");
else
LabelPhaseDiff.Text = "--";
LabelCB.Refresh();
}
catch { }
}
}
}
| 43.386861 | 195 | 0.536423 | [
"MIT"
] | geek96/MacomberMap | Client/MacomberMapClient/User Interfaces/OneLines/MM_OneLine_Synchroscope.cs | 23,783 | C# |
using HMA.DAL.Factories;
using HMA.DAL.Options;
using HMA.DAL.Repositories;
using HMA.DAL.Repositories.Interfaces;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using MongoDB.Driver;
namespace HMA.DI.Projects
{
internal static class DalDiStartup
{
public static void Init(IServiceCollection services, IConfiguration configuration)
{
services.Configure<MongoDbOptions>(configuration.GetSection(nameof(MongoDbOptions)));
services.AddSingleton(serviceProvider =>
{
var mongoDbOptions = serviceProvider.GetRequiredService<IOptions<MongoDbOptions>>();
var logger = serviceProvider.GetRequiredService<ILogger<MongoClient>>();
var mongoClient = MongoClientFactory.Create(mongoDbOptions.Value, logger);
return mongoClient;
});
services.AddSingleton(typeof(IGenericRepository<>), typeof(GenericRepository<>));
}
}
}
| 34 | 100 | 0.705882 | [
"MIT"
] | illja96/hma-api | HMA.DI/Projects/DalDiStartup.cs | 1,090 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace FlatlineDDNS.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.6.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}
| 39.518519 | 151 | 0.582006 | [
"MIT"
] | CAlex-Wilson/FlatlineDDNS | FlatlineDDNS/FlatlineDDNS/Properties/Settings.Designer.cs | 1,069 | C# |
using FishNet.Managing.Logging;
using UnityEngine;
namespace FishNet.Object
{
public abstract partial class NetworkBehaviour : MonoBehaviour
{
/// <summary>
/// True if can log for loggingType.
/// </summary>
/// <param name="loggingType">Type of logging being filtered.</param>
/// <returns></returns>
public bool CanLog(LoggingType loggingType)
{
return (NetworkManager == null) ? false : NetworkManager.CanLog(loggingType);
}
}
} | 23.909091 | 89 | 0.614068 | [
"MIT"
] | Clear-Voiz/Spell | SpellDuel/Assets/FishNet/Runtime/Object/NetworkBehaviour.Logging.cs | 528 | C# |
namespace ExampleGame.Assets.BSP.Types
{
class Edge
{
public ushort[] vertexIndices = new ushort[2];
}
}
| 15.75 | 54 | 0.619048 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | xezno/Engine | Source/ExampleGame/Assets/BSP/Types/Edge.cs | 128 | C# |
using UnityEngine;
using System.Collections;
[RequireComponent(typeof(MeshFilter))]
public class LoadingOverlay : MonoBehaviour {
private bool fading;
private float fade_timer;
public bool fadecomplete=false;
public float in_alpha = 1.0f;
public float out_alpha = 0.0f;
private Color from_color;
private Color to_color;
public Material material;
void Start(){
LoadingOverlay.ReverseNormals(this.gameObject);
this.fading = false;
this.fade_timer = 0;
this.material = this.gameObject.GetComponent<Renderer>().material;
this.from_color = this.material.color;
this.to_color = this.material.color;
}
void Update(){
if(this.fading == false)
return;
this.fade_timer += Time.deltaTime;
this.material.color = Color.Lerp(this.from_color, this.to_color, this.fade_timer);
if(this.material.color == this.to_color){
this.fading = false;
this.fade_timer = 0;
fadecomplete = true;
}
}
public void FadeOut(){
// Fade the overlay to `out_alpha`.
this.from_color.a = this.in_alpha;
this.to_color.a = this.out_alpha;
if(this.to_color != this.material.color){
this.fading = true;
}
}
public void FadeIn(){
// Fade the overlay to `in_alpha`.
this.from_color.a = this.out_alpha;
this.to_color.a = this.in_alpha;
if(this.to_color != this.material.color){
this.fading = true;
}
}
public static void ReverseNormals(GameObject gameObject){
// Renders interior of the overlay instead of exterior.
// Included for ease-of-use.
// Public so you can use it, too.
MeshFilter filter = gameObject.GetComponent(typeof(MeshFilter)) as MeshFilter;
if(filter != null){
Mesh mesh = filter.mesh;
Vector3[] normals = mesh.normals;
for(int i = 0; i < normals.Length; i++)
normals[i] = -normals[i];
mesh.normals = normals;
for(int m = 0; m < mesh.subMeshCount; m++){
int[] triangles = mesh.GetTriangles(m);
for(int i = 0; i < triangles.Length; i += 3){
int temp = triangles[i + 0];
triangles[i + 0] = triangles[i + 1];
triangles[i + 1] = temp;
}
mesh.SetTriangles(triangles, m);
}
}
}
}
| 30.890244 | 90 | 0.566522 | [
"Apache-2.0"
] | ThibautHumblet/VRExperience | HandsAndVideo/Assets/Fade/LoadingOverlay.cs | 2,533 | C# |
using System.Collections.Generic;
using JetBrains.Application;
using JetBrains.Application.DataContext;
using JetBrains.Application.UI.Actions.ActionManager;
using JetBrains.Diagnostics;
using JetBrains.Lifetimes;
using JetBrains.ReSharper.Plugins.Unity.AsmDef.Psi.DeclaredElements;
using JetBrains.ReSharper.Plugins.Unity.JsonNew.Psi;
using JetBrains.ReSharper.Plugins.Unity.JsonNew.Psi.Tree;
using JetBrains.ReSharper.Plugins.Unity.Utils;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.DataContext;
namespace JetBrains.ReSharper.Plugins.Unity.AsmDef.Feature.Services.DataConstants
{
// This enables Find Usages on the string literal value for the "name" JSON property. The string literal value
// doesn't have an IDeclaration, so the default rules can't find any IDeclaredElements. We have to provide one
[ShellComponent]
public class AsmDefDataRules
{
public AsmDefDataRules(Lifetime lifetime, IActionManager actionManager)
{
actionManager.DataContexts.RegisterDataRule(lifetime, "AsmDefDeclaredElements",
PsiDataConstants.DECLARED_ELEMENTS, GetDeclaredElementsFromContext);
}
private static ICollection<IDeclaredElement> GetDeclaredElementsFromContext(IDataContext dataContext)
{
var psiEditorView = dataContext.GetData(PsiDataConstants.PSI_EDITOR_VIEW);
if (psiEditorView == null) return null;
var psiView = psiEditorView.DefaultSourceFile.View<JsonNewLanguage>();
foreach (var containingNode in psiView.ContainingNodes)
{
var sourceFile = containingNode.GetSourceFile();
if (sourceFile == null || !sourceFile.IsAsmDef())
continue;
if (containingNode.IsNamePropertyValue())
{
var node = (containingNode as IJsonNewLiteralExpression).NotNull("node != null");
return new List<IDeclaredElement>
{
new AsmDefNameDeclaredElement(node.GetStringValue(), sourceFile,
containingNode.GetTreeStartOffset().Offset)
};
}
}
return null;
}
}
} | 42.811321 | 114 | 0.676069 | [
"Apache-2.0"
] | JetBrains/resharper-unity | resharper/resharper-unity/src/AsmDef/Feature/Services/DataConstants/AsmDefDataRules.cs | 2,271 | C# |
// Copyright (c) 2012 DotNetAnywhere
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if !LOCALTEST
namespace System {
public abstract class MarshalByRefObject {
}
}
#endif
| 41.758621 | 80 | 0.761354 | [
"MIT"
] | kaby76/Campy | Campy.Runtime/Corlib/System/MarshalByRefObject.cs | 1,211 | C# |
using System.Threading.Tasks;
using FluentAssertions;
using OmniSharp.Extensions.JsonRpc.Generators;
using Xunit;
using Xunit.Sdk;
using static Generation.Tests.GenerationHelpers;
namespace Generation.Tests
{
public class JsonRpcGenerationTests
{
[Fact]
public async Task Supports_Generating_Notifications_And_Infers_Direction_ExitHandler()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
namespace OmniSharp.Extensions.LanguageServer.Protocol.Test
{
[Serial, Method(GeneralNames.Exit, Direction.ClientToServer), GenerateHandlerMethods, GenerateRequestMethods]
public interface IExitHandler : IJsonRpcNotificationHandler<ExitParams>
{
}
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
using OmniSharp.Extensions.LanguageServer.Protocol.Test;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace OmniSharp.Extensions.LanguageServer.Protocol.Test
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class ExitExtensions
{
public static ILanguageServerRegistry OnExit(this ILanguageServerRegistry registry, Action<ExitParams> handler) => registry.AddHandler(GeneralNames.Exit, NotificationHandler.For(handler));
public static ILanguageServerRegistry OnExit(this ILanguageServerRegistry registry, Func<ExitParams, Task> handler) => registry.AddHandler(GeneralNames.Exit, NotificationHandler.For(handler));
public static ILanguageServerRegistry OnExit(this ILanguageServerRegistry registry, Action<ExitParams, CancellationToken> handler) => registry.AddHandler(GeneralNames.Exit, NotificationHandler.For(handler));
public static ILanguageServerRegistry OnExit(this ILanguageServerRegistry registry, Func<ExitParams, CancellationToken, Task> handler) => registry.AddHandler(GeneralNames.Exit, NotificationHandler.For(handler));
public static void SendExit(this ILanguageClient mediator, ExitParams request) => mediator.SendNotification(request);
}
#nullable restore
}";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Supports_Generating_Generic_Response_Types()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
namespace OmniSharp.Extensions.LanguageServer.Protocol.Test
{
[Serial]
[Method(WorkspaceNames.ExecuteCommand, Direction.ClientToServer)]
[
GenerateHandler(""OmniSharp.Extensions.LanguageServer.Protocol.Workspace"" /*, AllowDerivedRequests = true*/),
GenerateHandlerMethods,
GenerateRequestMethods(typeof(IWorkspaceLanguageClient), typeof(ILanguageClient))
]
[RegistrationOptions(typeof(ExecuteCommandRegistrationOptions)), Capability(typeof(ExecuteCommandCapability))]
public partial record ExecuteCommandParams<T> : IRequest<T>, IWorkDoneProgressParams, IExecuteCommandParams
{
/// <summary>
/// The identifier of the actual command handler.
/// </summary>
public string Command { get; init; }
/// <summary>
/// Arguments that the command should be invoked with.
/// </summary>
[Optional]
public JArray? Arguments { get; init; }
}
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
using OmniSharp.Extensions.LanguageServer.Protocol.Test;
using OmniSharp.Extensions.LanguageServer.Protocol.Workspace;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
#nullable enable
namespace OmniSharp.Extensions.LanguageServer.Protocol.Workspace
{
[Serial, Method(WorkspaceNames.ExecuteCommand, Direction.ClientToServer)]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public partial interface IExecuteCommandHandler<T> : IJsonRpcRequestHandler<ExecuteCommandParams<T>, T>, IRegistration<ExecuteCommandRegistrationOptions, ExecuteCommandCapability>
{
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
abstract public partial class ExecuteCommandHandlerBase<T> : AbstractHandlers.Request<ExecuteCommandParams<T>, T, ExecuteCommandRegistrationOptions, ExecuteCommandCapability>, IExecuteCommandHandler<T>
{
}
}
#nullable restore
namespace OmniSharp.Extensions.LanguageServer.Protocol.Workspace
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class ExecuteCommandExtensions1
{
public static ILanguageServerRegistry OnExecuteCommand<T>(this ILanguageServerRegistry registry, Func<ExecuteCommandParams<T>, Task<T>> handler, RegistrationOptionsDelegate<ExecuteCommandRegistrationOptions, ExecuteCommandCapability> registrationOptions)
{
return registry.AddHandler(WorkspaceNames.ExecuteCommand, new LanguageProtocolDelegatingHandlers.Request<ExecuteCommandParams<T>, T, ExecuteCommandRegistrationOptions, ExecuteCommandCapability>(HandlerAdapter<ExecuteCommandCapability>.Adapt<ExecuteCommandParams<T>, T>(handler), RegistrationAdapter<ExecuteCommandCapability>.Adapt<ExecuteCommandRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnExecuteCommand<T>(this ILanguageServerRegistry registry, Func<ExecuteCommandParams<T>, CancellationToken, Task<T>> handler, RegistrationOptionsDelegate<ExecuteCommandRegistrationOptions, ExecuteCommandCapability> registrationOptions)
{
return registry.AddHandler(WorkspaceNames.ExecuteCommand, new LanguageProtocolDelegatingHandlers.Request<ExecuteCommandParams<T>, T, ExecuteCommandRegistrationOptions, ExecuteCommandCapability>(HandlerAdapter<ExecuteCommandCapability>.Adapt<ExecuteCommandParams<T>, T>(handler), RegistrationAdapter<ExecuteCommandCapability>.Adapt<ExecuteCommandRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnExecuteCommand<T>(this ILanguageServerRegistry registry, Func<ExecuteCommandParams<T>, ExecuteCommandCapability, CancellationToken, Task<T>> handler, RegistrationOptionsDelegate<ExecuteCommandRegistrationOptions, ExecuteCommandCapability> registrationOptions)
{
return registry.AddHandler(WorkspaceNames.ExecuteCommand, new LanguageProtocolDelegatingHandlers.Request<ExecuteCommandParams<T>, T, ExecuteCommandRegistrationOptions, ExecuteCommandCapability>(HandlerAdapter<ExecuteCommandCapability>.Adapt<ExecuteCommandParams<T>, T>(handler), RegistrationAdapter<ExecuteCommandCapability>.Adapt<ExecuteCommandRegistrationOptions>(registrationOptions)));
}
public static Task<T> ExecuteCommand<T>(this IWorkspaceLanguageClient mediator, ExecuteCommandParams<T> request, CancellationToken cancellationToken = default) => mediator.SendRequest(request, cancellationToken);
public static Task<T> ExecuteCommand<T>(this ILanguageClient mediator, ExecuteCommandParams<T> request, CancellationToken cancellationToken = default) => mediator.SendRequest(request, cancellationToken);
}
#nullable restore
}";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Should_Report_Diagnostic_If_Missing_Information()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
namespace Test
{
[Serial, Method(GeneralNames.Exit, Direction.ClientToServer), GenerateHandlerMethods, GenerateRequestMethods]
public interface IExitHandler : IJsonRpcNotificationHandler<ExitParams>
{
}
}";
var a = () => AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, "");
await a.Should().ThrowAsync<EmptyException>().WithMessage("*Could not infer the request router(s)*");
await a.Should().ThrowAsync<EmptyException>("cache").WithMessage("*Could not infer the request router(s)*");
}
[Fact]
public async Task Supports_Generating_Notifications_And_Infers_Direction_CapabilitiesHandler()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Events.Test
{
[Parallel, Method(EventNames.Capabilities, Direction.ServerToClient), GenerateHandlerMethods, GenerateRequestMethods]
public interface ICapabilitiesHandler : IJsonRpcNotificationHandler<CapabilitiesEvent> { }
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Client;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events.Test;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.DebugAdapter.Protocol.Server;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Events.Test
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class CapabilitiesExtensions
{
public static IDebugAdapterClientRegistry OnCapabilities(this IDebugAdapterClientRegistry registry, Action<CapabilitiesEvent> handler) => registry.AddHandler(EventNames.Capabilities, NotificationHandler.For(handler));
public static IDebugAdapterClientRegistry OnCapabilities(this IDebugAdapterClientRegistry registry, Func<CapabilitiesEvent, Task> handler) => registry.AddHandler(EventNames.Capabilities, NotificationHandler.For(handler));
public static IDebugAdapterClientRegistry OnCapabilities(this IDebugAdapterClientRegistry registry, Action<CapabilitiesEvent, CancellationToken> handler) => registry.AddHandler(EventNames.Capabilities, NotificationHandler.For(handler));
public static IDebugAdapterClientRegistry OnCapabilities(this IDebugAdapterClientRegistry registry, Func<CapabilitiesEvent, CancellationToken, Task> handler) => registry.AddHandler(EventNames.Capabilities, NotificationHandler.For(handler));
public static void SendCapabilities(this IDebugAdapterServer mediator, CapabilitiesEvent request) => mediator.SendNotification(request);
}
#nullable restore
}";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Supports_Generating_Notifications_ExitHandler()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
namespace Test
{
[Serial, Method(GeneralNames.Exit, Direction.ClientToServer), GenerateHandlerMethods(typeof(ILanguageServerRegistry)), GenerateRequestMethods(typeof(ILanguageClient))]
public interface IExitHandler : IJsonRpcNotificationHandler<ExitParams>
{
}
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Test;
namespace Test
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class ExitExtensions
{
public static ILanguageServerRegistry OnExit(this ILanguageServerRegistry registry, Action<ExitParams> handler) => registry.AddHandler(GeneralNames.Exit, NotificationHandler.For(handler));
public static ILanguageServerRegistry OnExit(this ILanguageServerRegistry registry, Func<ExitParams, Task> handler) => registry.AddHandler(GeneralNames.Exit, NotificationHandler.For(handler));
public static ILanguageServerRegistry OnExit(this ILanguageServerRegistry registry, Action<ExitParams, CancellationToken> handler) => registry.AddHandler(GeneralNames.Exit, NotificationHandler.For(handler));
public static ILanguageServerRegistry OnExit(this ILanguageServerRegistry registry, Func<ExitParams, CancellationToken, Task> handler) => registry.AddHandler(GeneralNames.Exit, NotificationHandler.For(handler));
public static void SendExit(this ILanguageClient mediator, ExitParams request) => mediator.SendNotification(request);
}
#nullable restore
}";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Supports_Generating_Notifications_And_Infers_Direction_DidChangeTextHandler()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
namespace OmniSharp.Extensions.LanguageServer.Protocol.Test
{
[Serial, Method(TextDocumentNames.DidChange, Direction.ClientToServer), GenerateHandlerMethods, GenerateRequestMethods]
public interface IDidChangeTextDocumentHandler : IJsonRpcNotificationHandler<DidChangeTextDocumentParams>,
IRegistration<TextDocumentChangeRegistrationOptions, SynchronizationCapability>
{ }
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
using OmniSharp.Extensions.LanguageServer.Protocol.Test;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace OmniSharp.Extensions.LanguageServer.Protocol.Test
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class DidChangeTextDocumentExtensions
{
public static ILanguageServerRegistry OnDidChangeTextDocument(this ILanguageServerRegistry registry, Action<DidChangeTextDocumentParams> handler, RegistrationOptionsDelegate<TextDocumentChangeRegistrationOptions, SynchronizationCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.DidChange, new LanguageProtocolDelegatingHandlers.Notification<DidChangeTextDocumentParams, TextDocumentChangeRegistrationOptions, SynchronizationCapability>(HandlerAdapter<SynchronizationCapability>.Adapt<DidChangeTextDocumentParams>(handler), RegistrationAdapter<SynchronizationCapability>.Adapt<TextDocumentChangeRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnDidChangeTextDocument(this ILanguageServerRegistry registry, Func<DidChangeTextDocumentParams, Task> handler, RegistrationOptionsDelegate<TextDocumentChangeRegistrationOptions, SynchronizationCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.DidChange, new LanguageProtocolDelegatingHandlers.Notification<DidChangeTextDocumentParams, TextDocumentChangeRegistrationOptions, SynchronizationCapability>(HandlerAdapter<SynchronizationCapability>.Adapt<DidChangeTextDocumentParams>(handler), RegistrationAdapter<SynchronizationCapability>.Adapt<TextDocumentChangeRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnDidChangeTextDocument(this ILanguageServerRegistry registry, Action<DidChangeTextDocumentParams, CancellationToken> handler, RegistrationOptionsDelegate<TextDocumentChangeRegistrationOptions, SynchronizationCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.DidChange, new LanguageProtocolDelegatingHandlers.Notification<DidChangeTextDocumentParams, TextDocumentChangeRegistrationOptions, SynchronizationCapability>(HandlerAdapter<SynchronizationCapability>.Adapt<DidChangeTextDocumentParams>(handler), RegistrationAdapter<SynchronizationCapability>.Adapt<TextDocumentChangeRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnDidChangeTextDocument(this ILanguageServerRegistry registry, Func<DidChangeTextDocumentParams, CancellationToken, Task> handler, RegistrationOptionsDelegate<TextDocumentChangeRegistrationOptions, SynchronizationCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.DidChange, new LanguageProtocolDelegatingHandlers.Notification<DidChangeTextDocumentParams, TextDocumentChangeRegistrationOptions, SynchronizationCapability>(HandlerAdapter<SynchronizationCapability>.Adapt<DidChangeTextDocumentParams>(handler), RegistrationAdapter<SynchronizationCapability>.Adapt<TextDocumentChangeRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnDidChangeTextDocument(this ILanguageServerRegistry registry, Action<DidChangeTextDocumentParams, SynchronizationCapability, CancellationToken> handler, RegistrationOptionsDelegate<TextDocumentChangeRegistrationOptions, SynchronizationCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.DidChange, new LanguageProtocolDelegatingHandlers.Notification<DidChangeTextDocumentParams, TextDocumentChangeRegistrationOptions, SynchronizationCapability>(HandlerAdapter<SynchronizationCapability>.Adapt<DidChangeTextDocumentParams>(handler), RegistrationAdapter<SynchronizationCapability>.Adapt<TextDocumentChangeRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnDidChangeTextDocument(this ILanguageServerRegistry registry, Func<DidChangeTextDocumentParams, SynchronizationCapability, CancellationToken, Task> handler, RegistrationOptionsDelegate<TextDocumentChangeRegistrationOptions, SynchronizationCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.DidChange, new LanguageProtocolDelegatingHandlers.Notification<DidChangeTextDocumentParams, TextDocumentChangeRegistrationOptions, SynchronizationCapability>(HandlerAdapter<SynchronizationCapability>.Adapt<DidChangeTextDocumentParams>(handler), RegistrationAdapter<SynchronizationCapability>.Adapt<TextDocumentChangeRegistrationOptions>(registrationOptions)));
}
public static void DidChangeTextDocument(this ILanguageClient mediator, DidChangeTextDocumentParams request) => mediator.SendNotification(request);
}
#nullable restore
}
";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Supports_Generating_Notifications_And_Infers_Direction_FoldingRangeHandler()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
namespace OmniSharp.Extensions.LanguageServer.Protocol.Test
{
[Parallel, Method(TextDocumentNames.FoldingRange, Direction.ClientToServer)]
[GenerateHandlerMethods, GenerateRequestMethods(typeof(ITextDocumentLanguageClient), typeof(ILanguageClient))]
public interface IFoldingRangeHandler : IJsonRpcRequestHandler<FoldingRangeRequestParam, Container<FoldingRange>>,
IRegistration<FoldingRangeRegistrationOptions, FoldingRangeCapability>
{
}
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Progress;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
using OmniSharp.Extensions.LanguageServer.Protocol.Test;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace OmniSharp.Extensions.LanguageServer.Protocol.Test
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class FoldingRangeExtensions
{
public static ILanguageServerRegistry OnFoldingRange(this ILanguageServerRegistry registry, Func<FoldingRangeRequestParam, Task<Container<FoldingRange>>> handler, RegistrationOptionsDelegate<FoldingRangeRegistrationOptions, FoldingRangeCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.FoldingRange, new LanguageProtocolDelegatingHandlers.Request<FoldingRangeRequestParam, Container<FoldingRange>, FoldingRangeRegistrationOptions, FoldingRangeCapability>(HandlerAdapter<FoldingRangeCapability>.Adapt<FoldingRangeRequestParam, Container<FoldingRange>>(handler), RegistrationAdapter<FoldingRangeCapability>.Adapt<FoldingRangeRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnFoldingRange(this ILanguageServerRegistry registry, Func<FoldingRangeRequestParam, CancellationToken, Task<Container<FoldingRange>>> handler, RegistrationOptionsDelegate<FoldingRangeRegistrationOptions, FoldingRangeCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.FoldingRange, new LanguageProtocolDelegatingHandlers.Request<FoldingRangeRequestParam, Container<FoldingRange>, FoldingRangeRegistrationOptions, FoldingRangeCapability>(HandlerAdapter<FoldingRangeCapability>.Adapt<FoldingRangeRequestParam, Container<FoldingRange>>(handler), RegistrationAdapter<FoldingRangeCapability>.Adapt<FoldingRangeRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnFoldingRange(this ILanguageServerRegistry registry, Func<FoldingRangeRequestParam, FoldingRangeCapability, CancellationToken, Task<Container<FoldingRange>>> handler, RegistrationOptionsDelegate<FoldingRangeRegistrationOptions, FoldingRangeCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.FoldingRange, new LanguageProtocolDelegatingHandlers.Request<FoldingRangeRequestParam, Container<FoldingRange>, FoldingRangeRegistrationOptions, FoldingRangeCapability>(HandlerAdapter<FoldingRangeCapability>.Adapt<FoldingRangeRequestParam, Container<FoldingRange>>(handler), RegistrationAdapter<FoldingRangeCapability>.Adapt<FoldingRangeRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry ObserveFoldingRange(this ILanguageServerRegistry registry, Action<FoldingRangeRequestParam, IObserver<IEnumerable<FoldingRange>>> handler, RegistrationOptionsDelegate<FoldingRangeRegistrationOptions, FoldingRangeCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.FoldingRange, _ => new LanguageProtocolDelegatingHandlers.PartialResults<FoldingRangeRequestParam, Container<FoldingRange>, FoldingRange, FoldingRangeRegistrationOptions, FoldingRangeCapability>(PartialAdapter<FoldingRangeCapability>.Adapt<FoldingRangeRequestParam, FoldingRange>(handler), RegistrationAdapter<FoldingRangeCapability>.Adapt<FoldingRangeRegistrationOptions>(registrationOptions), _.GetService<IProgressManager>(), Container<FoldingRange>.From));
}
public static ILanguageServerRegistry ObserveFoldingRange(this ILanguageServerRegistry registry, Action<FoldingRangeRequestParam, IObserver<IEnumerable<FoldingRange>>, CancellationToken> handler, RegistrationOptionsDelegate<FoldingRangeRegistrationOptions, FoldingRangeCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.FoldingRange, _ => new LanguageProtocolDelegatingHandlers.PartialResults<FoldingRangeRequestParam, Container<FoldingRange>, FoldingRange, FoldingRangeRegistrationOptions, FoldingRangeCapability>(PartialAdapter<FoldingRangeCapability>.Adapt<FoldingRangeRequestParam, FoldingRange>(handler), RegistrationAdapter<FoldingRangeCapability>.Adapt<FoldingRangeRegistrationOptions>(registrationOptions), _.GetService<IProgressManager>(), Container<FoldingRange>.From));
}
public static ILanguageServerRegistry ObserveFoldingRange(this ILanguageServerRegistry registry, Action<FoldingRangeRequestParam, IObserver<IEnumerable<FoldingRange>>, FoldingRangeCapability, CancellationToken> handler, RegistrationOptionsDelegate<FoldingRangeRegistrationOptions, FoldingRangeCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.FoldingRange, _ => new LanguageProtocolDelegatingHandlers.PartialResults<FoldingRangeRequestParam, Container<FoldingRange>, FoldingRange, FoldingRangeRegistrationOptions, FoldingRangeCapability>(PartialAdapter<FoldingRangeCapability>.Adapt<FoldingRangeRequestParam, FoldingRange>(handler), RegistrationAdapter<FoldingRangeCapability>.Adapt<FoldingRangeRegistrationOptions>(registrationOptions), _.GetService<IProgressManager>(), Container<FoldingRange>.From));
}
public static IRequestProgressObservable<IEnumerable<FoldingRange>, Container<FoldingRange>> RequestFoldingRange(this ITextDocumentLanguageClient mediator, FoldingRangeRequestParam request, CancellationToken cancellationToken = default) => mediator.ProgressManager.MonitorUntil(request, value => new Container<FoldingRange>(value), cancellationToken);
public static IRequestProgressObservable<IEnumerable<FoldingRange>, Container<FoldingRange>> RequestFoldingRange(this ILanguageClient mediator, FoldingRangeRequestParam request, CancellationToken cancellationToken = default) => mediator.ProgressManager.MonitorUntil(request, value => new Container<FoldingRange>(value), cancellationToken);
}
#nullable restore
}
";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Supports_Generating_Requests_And_Infers_Direction()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
namespace OmniSharp.Extensions.LanguageServer.Protocol.Test
{
[Parallel, Method(TextDocumentNames.Definition, Direction.ClientToServer), GenerateHandlerMethods, GenerateRequestMethods, Obsolete(""This is obsolete"")]
public interface IDefinitionHandler : IJsonRpcRequestHandler<DefinitionParams, LocationOrLocationLinks>, IRegistration<DefinitionRegistrationOptions, DefinitionCapability> { }
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Progress;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
using OmniSharp.Extensions.LanguageServer.Protocol.Test;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace OmniSharp.Extensions.LanguageServer.Protocol.Test
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute, Obsolete(""This is obsolete"")]
public static partial class DefinitionExtensions
{
public static ILanguageServerRegistry OnDefinition(this ILanguageServerRegistry registry, Func<DefinitionParams, Task<LocationOrLocationLinks>> handler, RegistrationOptionsDelegate<DefinitionRegistrationOptions, DefinitionCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Definition, new LanguageProtocolDelegatingHandlers.Request<DefinitionParams, LocationOrLocationLinks, DefinitionRegistrationOptions, DefinitionCapability>(HandlerAdapter<DefinitionCapability>.Adapt<DefinitionParams, LocationOrLocationLinks>(handler), RegistrationAdapter<DefinitionCapability>.Adapt<DefinitionRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnDefinition(this ILanguageServerRegistry registry, Func<DefinitionParams, CancellationToken, Task<LocationOrLocationLinks>> handler, RegistrationOptionsDelegate<DefinitionRegistrationOptions, DefinitionCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Definition, new LanguageProtocolDelegatingHandlers.Request<DefinitionParams, LocationOrLocationLinks, DefinitionRegistrationOptions, DefinitionCapability>(HandlerAdapter<DefinitionCapability>.Adapt<DefinitionParams, LocationOrLocationLinks>(handler), RegistrationAdapter<DefinitionCapability>.Adapt<DefinitionRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnDefinition(this ILanguageServerRegistry registry, Func<DefinitionParams, DefinitionCapability, CancellationToken, Task<LocationOrLocationLinks>> handler, RegistrationOptionsDelegate<DefinitionRegistrationOptions, DefinitionCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Definition, new LanguageProtocolDelegatingHandlers.Request<DefinitionParams, LocationOrLocationLinks, DefinitionRegistrationOptions, DefinitionCapability>(HandlerAdapter<DefinitionCapability>.Adapt<DefinitionParams, LocationOrLocationLinks>(handler), RegistrationAdapter<DefinitionCapability>.Adapt<DefinitionRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry ObserveDefinition(this ILanguageServerRegistry registry, Action<DefinitionParams, IObserver<IEnumerable<LocationOrLocationLink>>> handler, RegistrationOptionsDelegate<DefinitionRegistrationOptions, DefinitionCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Definition, _ => new LanguageProtocolDelegatingHandlers.PartialResults<DefinitionParams, LocationOrLocationLinks, LocationOrLocationLink, DefinitionRegistrationOptions, DefinitionCapability>(PartialAdapter<DefinitionCapability>.Adapt<DefinitionParams, LocationOrLocationLink>(handler), RegistrationAdapter<DefinitionCapability>.Adapt<DefinitionRegistrationOptions>(registrationOptions), _.GetService<IProgressManager>(), LocationOrLocationLinks.From));
}
public static ILanguageServerRegistry ObserveDefinition(this ILanguageServerRegistry registry, Action<DefinitionParams, IObserver<IEnumerable<LocationOrLocationLink>>, CancellationToken> handler, RegistrationOptionsDelegate<DefinitionRegistrationOptions, DefinitionCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Definition, _ => new LanguageProtocolDelegatingHandlers.PartialResults<DefinitionParams, LocationOrLocationLinks, LocationOrLocationLink, DefinitionRegistrationOptions, DefinitionCapability>(PartialAdapter<DefinitionCapability>.Adapt<DefinitionParams, LocationOrLocationLink>(handler), RegistrationAdapter<DefinitionCapability>.Adapt<DefinitionRegistrationOptions>(registrationOptions), _.GetService<IProgressManager>(), LocationOrLocationLinks.From));
}
public static ILanguageServerRegistry ObserveDefinition(this ILanguageServerRegistry registry, Action<DefinitionParams, IObserver<IEnumerable<LocationOrLocationLink>>, DefinitionCapability, CancellationToken> handler, RegistrationOptionsDelegate<DefinitionRegistrationOptions, DefinitionCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Definition, _ => new LanguageProtocolDelegatingHandlers.PartialResults<DefinitionParams, LocationOrLocationLinks, LocationOrLocationLink, DefinitionRegistrationOptions, DefinitionCapability>(PartialAdapter<DefinitionCapability>.Adapt<DefinitionParams, LocationOrLocationLink>(handler), RegistrationAdapter<DefinitionCapability>.Adapt<DefinitionRegistrationOptions>(registrationOptions), _.GetService<IProgressManager>(), LocationOrLocationLinks.From));
}
public static IRequestProgressObservable<IEnumerable<LocationOrLocationLink>, LocationOrLocationLinks> RequestDefinition(this ILanguageClient mediator, DefinitionParams request, CancellationToken cancellationToken = default) => mediator.ProgressManager.MonitorUntil(request, value => new LocationOrLocationLinks(value), cancellationToken);
}
#nullable restore
}";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Supports_Generating_Requests()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using MediatR;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
namespace Test
{
[Parallel, Method(TextDocumentNames.Definition, Direction.ClientToServer), GenerateHandlerMethods(typeof(ILanguageServerRegistry)), GenerateRequestMethods(typeof(ITextDocumentLanguageClient))]
public interface IDefinitionHandler : IJsonRpcRequestHandler<DefinitionParams, LocationOrLocationLinks>, IRegistration<DefinitionRegistrationOptions, DefinitionCapability> { }
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Progress;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Test;
namespace Test
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class DefinitionExtensions
{
public static ILanguageServerRegistry OnDefinition(this ILanguageServerRegistry registry, Func<DefinitionParams, Task<LocationOrLocationLinks>> handler, RegistrationOptionsDelegate<DefinitionRegistrationOptions, DefinitionCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Definition, new LanguageProtocolDelegatingHandlers.Request<DefinitionParams, LocationOrLocationLinks, DefinitionRegistrationOptions, DefinitionCapability>(HandlerAdapter<DefinitionCapability>.Adapt<DefinitionParams, LocationOrLocationLinks>(handler), RegistrationAdapter<DefinitionCapability>.Adapt<DefinitionRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnDefinition(this ILanguageServerRegistry registry, Func<DefinitionParams, CancellationToken, Task<LocationOrLocationLinks>> handler, RegistrationOptionsDelegate<DefinitionRegistrationOptions, DefinitionCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Definition, new LanguageProtocolDelegatingHandlers.Request<DefinitionParams, LocationOrLocationLinks, DefinitionRegistrationOptions, DefinitionCapability>(HandlerAdapter<DefinitionCapability>.Adapt<DefinitionParams, LocationOrLocationLinks>(handler), RegistrationAdapter<DefinitionCapability>.Adapt<DefinitionRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnDefinition(this ILanguageServerRegistry registry, Func<DefinitionParams, DefinitionCapability, CancellationToken, Task<LocationOrLocationLinks>> handler, RegistrationOptionsDelegate<DefinitionRegistrationOptions, DefinitionCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Definition, new LanguageProtocolDelegatingHandlers.Request<DefinitionParams, LocationOrLocationLinks, DefinitionRegistrationOptions, DefinitionCapability>(HandlerAdapter<DefinitionCapability>.Adapt<DefinitionParams, LocationOrLocationLinks>(handler), RegistrationAdapter<DefinitionCapability>.Adapt<DefinitionRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry ObserveDefinition(this ILanguageServerRegistry registry, Action<DefinitionParams, IObserver<IEnumerable<LocationOrLocationLink>>> handler, RegistrationOptionsDelegate<DefinitionRegistrationOptions, DefinitionCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Definition, _ => new LanguageProtocolDelegatingHandlers.PartialResults<DefinitionParams, LocationOrLocationLinks, LocationOrLocationLink, DefinitionRegistrationOptions, DefinitionCapability>(PartialAdapter<DefinitionCapability>.Adapt<DefinitionParams, LocationOrLocationLink>(handler), RegistrationAdapter<DefinitionCapability>.Adapt<DefinitionRegistrationOptions>(registrationOptions), _.GetService<IProgressManager>(), LocationOrLocationLinks.From));
}
public static ILanguageServerRegistry ObserveDefinition(this ILanguageServerRegistry registry, Action<DefinitionParams, IObserver<IEnumerable<LocationOrLocationLink>>, CancellationToken> handler, RegistrationOptionsDelegate<DefinitionRegistrationOptions, DefinitionCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Definition, _ => new LanguageProtocolDelegatingHandlers.PartialResults<DefinitionParams, LocationOrLocationLinks, LocationOrLocationLink, DefinitionRegistrationOptions, DefinitionCapability>(PartialAdapter<DefinitionCapability>.Adapt<DefinitionParams, LocationOrLocationLink>(handler), RegistrationAdapter<DefinitionCapability>.Adapt<DefinitionRegistrationOptions>(registrationOptions), _.GetService<IProgressManager>(), LocationOrLocationLinks.From));
}
public static ILanguageServerRegistry ObserveDefinition(this ILanguageServerRegistry registry, Action<DefinitionParams, IObserver<IEnumerable<LocationOrLocationLink>>, DefinitionCapability, CancellationToken> handler, RegistrationOptionsDelegate<DefinitionRegistrationOptions, DefinitionCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Definition, _ => new LanguageProtocolDelegatingHandlers.PartialResults<DefinitionParams, LocationOrLocationLinks, LocationOrLocationLink, DefinitionRegistrationOptions, DefinitionCapability>(PartialAdapter<DefinitionCapability>.Adapt<DefinitionParams, LocationOrLocationLink>(handler), RegistrationAdapter<DefinitionCapability>.Adapt<DefinitionRegistrationOptions>(registrationOptions), _.GetService<IProgressManager>(), LocationOrLocationLinks.From));
}
public static IRequestProgressObservable<IEnumerable<LocationOrLocationLink>, LocationOrLocationLinks> RequestDefinition(this ITextDocumentLanguageClient mediator, DefinitionParams request, CancellationToken cancellationToken = default) => mediator.ProgressManager.MonitorUntil(request, value => new LocationOrLocationLinks(value), cancellationToken);
}
#nullable restore
}";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Supports_Custom_Method_Names()
{
var source = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Test;
namespace Test
{
[Serial, Method(GeneralNames.Initialize, Direction.ClientToServer), GenerateHandlerMethods(typeof(ILanguageServerRegistry), MethodName = ""OnLanguageProtocolInitialize""), GenerateRequestMethods(typeof(ITextDocumentLanguageClient), MethodName = ""RequestLanguageProtocolInitialize"")]
public interface ILanguageProtocolInitializeHandler : IJsonRpcRequestHandler<InitializeParams, InitializeResult> {}
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Test;
namespace Test
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class LanguageProtocolInitializeExtensions
{
public static ILanguageServerRegistry OnLanguageProtocolInitialize(this ILanguageServerRegistry registry, Func<InitializeParams, Task<InitializeResult>> handler) => registry.AddHandler(GeneralNames.Initialize, RequestHandler.For(handler));
public static ILanguageServerRegistry OnLanguageProtocolInitialize(this ILanguageServerRegistry registry, Func<InitializeParams, CancellationToken, Task<InitializeResult>> handler) => registry.AddHandler(GeneralNames.Initialize, RequestHandler.For(handler));
public static Task<InitializeResult> RequestLanguageProtocolInitialize(this ITextDocumentLanguageClient mediator, InitializeParams request, CancellationToken cancellationToken = default) => mediator.SendRequest(request, cancellationToken);
}
#nullable restore
}";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Supports_Allow_Derived_Requests()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using System.Collections.Generic;
using MediatR;
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Bogus
{
public class AttachResponse { }
[Method(""attach"", Direction.ClientToServer)]
[GenerateHandler(AllowDerivedRequests = true), GenerateHandlerMethods, GenerateRequestMethods]
public class AttachRequestArguments: IRequest<AttachResponse> { }
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Bogus;
using OmniSharp.Extensions.DebugAdapter.Protocol.Client;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.DebugAdapter.Protocol.Server;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
#nullable enable
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Bogus
{
[Method(""attach"", Direction.ClientToServer)]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public partial interface IAttachRequestHandler<in T> : IJsonRpcRequestHandler<T, AttachResponse> where T : AttachRequestArguments
{
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
abstract public partial class AttachRequestHandlerBase<T> : AbstractHandlers.Request<T, AttachResponse>, IAttachRequestHandler<T> where T : AttachRequestArguments
{
}
public partial interface IAttachRequestHandler : IAttachRequestHandler<AttachRequestArguments>
{
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
abstract public partial class AttachRequestHandlerBase : AttachRequestHandlerBase<AttachRequestArguments>, IAttachRequestHandler
{
}
}
#nullable restore
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Bogus
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class AttachRequestExtensions
{
public static IDebugAdapterServerRegistry OnAttachRequest(this IDebugAdapterServerRegistry registry, Func<AttachRequestArguments, Task<AttachResponse>> handler) => registry.AddHandler(""attach"", RequestHandler.For(handler));
public static IDebugAdapterServerRegistry OnAttachRequest(this IDebugAdapterServerRegistry registry, Func<AttachRequestArguments, CancellationToken, Task<AttachResponse>> handler) => registry.AddHandler(""attach"", RequestHandler.For(handler));
public static IDebugAdapterServerRegistry OnAttachRequest<T>(this IDebugAdapterServerRegistry registry, Func<T, Task<AttachResponse>> handler)
where T : AttachRequestArguments => registry.AddHandler(""attach"", RequestHandler.For(handler));
public static IDebugAdapterServerRegistry OnAttachRequest<T>(this IDebugAdapterServerRegistry registry, Func<T, CancellationToken, Task<AttachResponse>> handler)
where T : AttachRequestArguments => registry.AddHandler(""attach"", RequestHandler.For(handler));
public static Task<AttachResponse> AttachRequest(this IDebugAdapterClient mediator, AttachRequestArguments request, CancellationToken cancellationToken = default) => mediator.SendRequest(request, cancellationToken);
}
#nullable restore
}";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Supports_Allow_Derived_Requests_Nullable()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using System.Collections.Generic;
using MediatR;
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Bogus
{
public class LaunchResponse { }
[Method(""launch"", Direction.ClientToServer)]
[GenerateHandler(AllowDerivedRequests = true), GenerateHandlerMethods, GenerateRequestMethods]
public class LaunchRequestArguments: IRequest<LaunchResponse?> { }
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Bogus;
using OmniSharp.Extensions.DebugAdapter.Protocol.Client;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.DebugAdapter.Protocol.Server;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
#nullable enable
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Bogus
{
[Method(""launch"", Direction.ClientToServer)]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public partial interface ILaunchRequestHandler<in T> : IJsonRpcRequestHandler<T, LaunchResponse?> where T : LaunchRequestArguments
{
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
abstract public partial class LaunchRequestHandlerBase<T> : AbstractHandlers.Request<T, LaunchResponse?>, ILaunchRequestHandler<T> where T : LaunchRequestArguments
{
}
public partial interface ILaunchRequestHandler : ILaunchRequestHandler<LaunchRequestArguments>
{
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
abstract public partial class LaunchRequestHandlerBase : LaunchRequestHandlerBase<LaunchRequestArguments>, ILaunchRequestHandler
{
}
}
#nullable restore
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Bogus
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class LaunchRequestExtensions
{
public static IDebugAdapterServerRegistry OnLaunchRequest(this IDebugAdapterServerRegistry registry, Func<LaunchRequestArguments, Task<LaunchResponse?>> handler) => registry.AddHandler(""launch"", RequestHandler.For(handler));
public static IDebugAdapterServerRegistry OnLaunchRequest(this IDebugAdapterServerRegistry registry, Func<LaunchRequestArguments, CancellationToken, Task<LaunchResponse?>> handler) => registry.AddHandler(""launch"", RequestHandler.For(handler));
public static IDebugAdapterServerRegistry OnLaunchRequest<T>(this IDebugAdapterServerRegistry registry, Func<T, Task<LaunchResponse?>> handler)
where T : LaunchRequestArguments => registry.AddHandler(""launch"", RequestHandler.For(handler));
public static IDebugAdapterServerRegistry OnLaunchRequest<T>(this IDebugAdapterServerRegistry registry, Func<T, CancellationToken, Task<LaunchResponse?>> handler)
where T : LaunchRequestArguments => registry.AddHandler(""launch"", RequestHandler.For(handler));
public static Task<LaunchResponse?> LaunchRequest(this IDebugAdapterClient mediator, LaunchRequestArguments request, CancellationToken cancellationToken = default) => mediator.SendRequest(request, cancellationToken);
}
#nullable restore
}";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Supports_Allows_Nullable_Responses()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using System.Collections.Generic;
using MediatR;
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Bogus
{
public class AttachResponse { }
[Method(""attach"", Direction.ClientToServer)]
[GenerateHandler(AllowDerivedRequests = true), GenerateHandlerMethods, GenerateRequestMethods]
public class AttachRequestArguments: IRequest<AttachResponse?> { }
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Bogus;
using OmniSharp.Extensions.DebugAdapter.Protocol.Client;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.DebugAdapter.Protocol.Server;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
#nullable enable
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Bogus
{
[Method(""attach"", Direction.ClientToServer)]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public partial interface IAttachRequestHandler<in T> : IJsonRpcRequestHandler<T, AttachResponse?> where T : AttachRequestArguments
{
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
abstract public partial class AttachRequestHandlerBase<T> : AbstractHandlers.Request<T, AttachResponse?>, IAttachRequestHandler<T> where T : AttachRequestArguments
{
}
public partial interface IAttachRequestHandler : IAttachRequestHandler<AttachRequestArguments>
{
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
abstract public partial class AttachRequestHandlerBase : AttachRequestHandlerBase<AttachRequestArguments>, IAttachRequestHandler
{
}
}
#nullable restore
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Bogus
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class AttachRequestExtensions
{
public static IDebugAdapterServerRegistry OnAttachRequest(this IDebugAdapterServerRegistry registry, Func<AttachRequestArguments, Task<AttachResponse?>> handler) => registry.AddHandler(""attach"", RequestHandler.For(handler));
public static IDebugAdapterServerRegistry OnAttachRequest(this IDebugAdapterServerRegistry registry, Func<AttachRequestArguments, CancellationToken, Task<AttachResponse?>> handler) => registry.AddHandler(""attach"", RequestHandler.For(handler));
public static IDebugAdapterServerRegistry OnAttachRequest<T>(this IDebugAdapterServerRegistry registry, Func<T, Task<AttachResponse?>> handler)
where T : AttachRequestArguments => registry.AddHandler(""attach"", RequestHandler.For(handler));
public static IDebugAdapterServerRegistry OnAttachRequest<T>(this IDebugAdapterServerRegistry registry, Func<T, CancellationToken, Task<AttachResponse?>> handler)
where T : AttachRequestArguments => registry.AddHandler(""attach"", RequestHandler.For(handler));
public static Task<AttachResponse?> AttachRequest(this IDebugAdapterClient mediator, AttachRequestArguments request, CancellationToken cancellationToken = default) => mediator.SendRequest(request, cancellationToken);
}
#nullable restore
}";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Supports_Allow_Generic_Types()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using System.Collections.Generic;
using MediatR;
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Bogus
{
public class AttachResponse { }
[Method(""attach"", Direction.ClientToServer)]
[GenerateHandler(AllowDerivedRequests = true), GenerateHandlerMethods, GenerateRequestMethods]
public class AttachRequestArguments: IRequest<AttachResponse> { }
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Bogus;
using OmniSharp.Extensions.DebugAdapter.Protocol.Client;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.DebugAdapter.Protocol.Server;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
#nullable enable
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Bogus
{
[Method(""attach"", Direction.ClientToServer)]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public partial interface IAttachRequestHandler<in T> : IJsonRpcRequestHandler<T, AttachResponse> where T : AttachRequestArguments
{
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
abstract public partial class AttachRequestHandlerBase<T> : AbstractHandlers.Request<T, AttachResponse>, IAttachRequestHandler<T> where T : AttachRequestArguments
{
}
public partial interface IAttachRequestHandler : IAttachRequestHandler<AttachRequestArguments>
{
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
abstract public partial class AttachRequestHandlerBase : AttachRequestHandlerBase<AttachRequestArguments>, IAttachRequestHandler
{
}
}
#nullable restore
namespace OmniSharp.Extensions.DebugAdapter.Protocol.Bogus
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class AttachRequestExtensions
{
public static IDebugAdapterServerRegistry OnAttachRequest(this IDebugAdapterServerRegistry registry, Func<AttachRequestArguments, Task<AttachResponse>> handler) => registry.AddHandler(""attach"", RequestHandler.For(handler));
public static IDebugAdapterServerRegistry OnAttachRequest(this IDebugAdapterServerRegistry registry, Func<AttachRequestArguments, CancellationToken, Task<AttachResponse>> handler) => registry.AddHandler(""attach"", RequestHandler.For(handler));
public static IDebugAdapterServerRegistry OnAttachRequest<T>(this IDebugAdapterServerRegistry registry, Func<T, Task<AttachResponse>> handler)
where T : AttachRequestArguments => registry.AddHandler(""attach"", RequestHandler.For(handler));
public static IDebugAdapterServerRegistry OnAttachRequest<T>(this IDebugAdapterServerRegistry registry, Func<T, CancellationToken, Task<AttachResponse>> handler)
where T : AttachRequestArguments => registry.AddHandler(""attach"", RequestHandler.For(handler));
public static Task<AttachResponse> AttachRequest(this IDebugAdapterClient mediator, AttachRequestArguments request, CancellationToken cancellationToken = default) => mediator.SendRequest(request, cancellationToken);
}
#nullable restore
}";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
[Fact]
public async Task Supports_Params_Type_As_Source()
{
var source = @"
using System;
using System.Threading;
using System.Threading.Tasks;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using System.Collections.Generic;
using MediatR;
using RenameRegistrationOptions = OmniSharp.Extensions.LanguageServer.Protocol.Models.RenameRegistrationOptions;
using RenameCapability = OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities.RenameCapability;
using ITextDocumentIdentifierParams = OmniSharp.Extensions.LanguageServer.Protocol.Models.ITextDocumentIdentifierParams;
using WorkspaceEdit = OmniSharp.Extensions.LanguageServer.Protocol.Models.WorkspaceEdit;
namespace OmniSharp.Extensions.LanguageServer.Protocol.Bogus
{
[Parallel]
[Method(TextDocumentNames.Rename, Direction.ClientToServer)]
[GenerateHandler(""OmniSharp.Extensions.LanguageServer.Protocol.Bogus.Handlers""), GenerateHandlerMethods, GenerateRequestMethods(typeof(ITextDocumentLanguageClient), typeof(ILanguageClient))]
[RegistrationOptions(typeof(RenameRegistrationOptions))]
[Capability(typeof(RenameCapability))]
public partial class RenameParams : ITextDocumentIdentifierParams, IRequest<WorkspaceEdit?>
{
}
}";
var expected = @"
using MediatR;
using Microsoft.Extensions.DependencyInjection;
using OmniSharp.Extensions.DebugAdapter.Protocol;
using OmniSharp.Extensions.DebugAdapter.Protocol.Events;
using OmniSharp.Extensions.DebugAdapter.Protocol.Models;
using OmniSharp.Extensions.DebugAdapter.Protocol.Requests;
using OmniSharp.Extensions.JsonRpc;
using OmniSharp.Extensions.JsonRpc.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol;
using OmniSharp.Extensions.LanguageServer.Protocol.Bogus;
using OmniSharp.Extensions.LanguageServer.Protocol.Bogus.Handlers;
using OmniSharp.Extensions.LanguageServer.Protocol.Client;
using OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities;
using RenameCapability = OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities.RenameCapability;
using OmniSharp.Extensions.LanguageServer.Protocol.Generation;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using ITextDocumentIdentifierParams = OmniSharp.Extensions.LanguageServer.Protocol.Models.ITextDocumentIdentifierParams;
using RenameRegistrationOptions = OmniSharp.Extensions.LanguageServer.Protocol.Models.RenameRegistrationOptions;
using WorkspaceEdit = OmniSharp.Extensions.LanguageServer.Protocol.Models.WorkspaceEdit;
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
#nullable enable
namespace OmniSharp.Extensions.LanguageServer.Protocol.Bogus.Handlers
{
[Parallel, Method(TextDocumentNames.Rename, Direction.ClientToServer)]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public partial interface IRenameHandler : IJsonRpcRequestHandler<RenameParams, WorkspaceEdit?>, IRegistration<RenameRegistrationOptions, RenameCapability>
{
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute, System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute]
abstract public partial class RenameHandlerBase : AbstractHandlers.Request<RenameParams, WorkspaceEdit?, RenameRegistrationOptions, RenameCapability>, IRenameHandler
{
}
}
#nullable restore
namespace OmniSharp.Extensions.LanguageServer.Protocol.Bogus.Handlers
{
#nullable enable
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute, System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static partial class RenameExtensions
{
public static ILanguageServerRegistry OnRename(this ILanguageServerRegistry registry, Func<RenameParams, Task<WorkspaceEdit?>> handler, RegistrationOptionsDelegate<RenameRegistrationOptions, RenameCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Rename, new LanguageProtocolDelegatingHandlers.Request<RenameParams, WorkspaceEdit?, RenameRegistrationOptions, RenameCapability>(HandlerAdapter<RenameCapability>.Adapt<RenameParams, WorkspaceEdit?>(handler), RegistrationAdapter<RenameCapability>.Adapt<RenameRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnRename(this ILanguageServerRegistry registry, Func<RenameParams, CancellationToken, Task<WorkspaceEdit?>> handler, RegistrationOptionsDelegate<RenameRegistrationOptions, RenameCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Rename, new LanguageProtocolDelegatingHandlers.Request<RenameParams, WorkspaceEdit?, RenameRegistrationOptions, RenameCapability>(HandlerAdapter<RenameCapability>.Adapt<RenameParams, WorkspaceEdit?>(handler), RegistrationAdapter<RenameCapability>.Adapt<RenameRegistrationOptions>(registrationOptions)));
}
public static ILanguageServerRegistry OnRename(this ILanguageServerRegistry registry, Func<RenameParams, RenameCapability, CancellationToken, Task<WorkspaceEdit?>> handler, RegistrationOptionsDelegate<RenameRegistrationOptions, RenameCapability> registrationOptions)
{
return registry.AddHandler(TextDocumentNames.Rename, new LanguageProtocolDelegatingHandlers.Request<RenameParams, WorkspaceEdit?, RenameRegistrationOptions, RenameCapability>(HandlerAdapter<RenameCapability>.Adapt<RenameParams, WorkspaceEdit?>(handler), RegistrationAdapter<RenameCapability>.Adapt<RenameRegistrationOptions>(registrationOptions)));
}
public static Task<WorkspaceEdit?> RequestRename(this ITextDocumentLanguageClient mediator, RenameParams request, CancellationToken cancellationToken = default) => mediator.SendRequest(request, cancellationToken);
public static Task<WorkspaceEdit?> RequestRename(this ILanguageClient mediator, RenameParams request, CancellationToken cancellationToken = default) => mediator.SendRequest(request, cancellationToken);
}
#nullable restore
}";
await AssertGeneratedAsExpected<GenerateHandlerMethodsGenerator>(source, expected);
}
}
}
| 61.7905 | 517 | 0.82644 | [
"MIT"
] | SeeminglyScience/csharp-language-server-protocol | test/Generation.Tests/JsonRpcGenerationTests.cs | 72,851 | C# |
/*
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using System;
namespace SafeExamBrowser.Settings.Monitoring
{
/// <summary>
/// Defines all settings for monitoring keyboard input.
/// </summary>
[Serializable]
public class KeyboardSettings
{
/// <summary>
/// Determines whether the user may use the ALT+ESC shortcut.
/// </summary>
public bool AllowAltEsc { get; set; }
/// <summary>
/// Determines whether the user may use the ALT+F4 shortcut.
/// </summary>
public bool AllowAltF4 { get; set; }
/// <summary>
/// Determines whether the user may use the ALT+TAB shortcut.
/// </summary>
public bool AllowAltTab { get; set; }
/// <summary>
/// Determines whether the user may use the CTRL+ESC shortcut.
/// </summary>
public bool AllowCtrlEsc { get; set; }
/// <summary>
/// Determines whether the user may use the escape key.
/// </summary>
public bool AllowEsc { get; set; }
/// <summary>
/// Determines whether the user may use the F1 key.
/// </summary>
public bool AllowF1 { get; set; }
/// <summary>
/// Determines whether the user may use the F2 key.
/// </summary>
public bool AllowF2 { get; set; }
/// <summary>
/// Determines whether the user may use the F3 key.
/// </summary>
public bool AllowF3 { get; set; }
/// <summary>
/// Determines whether the user may use the F4 key.
/// </summary>
public bool AllowF4 { get; set; }
/// <summary>
/// Determines whether the user may use the F5 key.
/// </summary>
public bool AllowF5 { get; set; }
/// <summary>
/// Determines whether the user may use the F6 key.
/// </summary>
public bool AllowF6 { get; set; }
/// <summary>
/// Determines whether the user may use the F7 key.
/// </summary>
public bool AllowF7 { get; set; }
/// <summary>
/// Determines whether the user may use the F8 key.
/// </summary>
public bool AllowF8 { get; set; }
/// <summary>
/// Determines whether the user may use the F9 key.
/// </summary>
public bool AllowF9 { get; set; }
/// <summary>
/// Determines whether the user may use the F10 key.
/// </summary>
public bool AllowF10 { get; set; }
/// <summary>
/// Determines whether the user may use the F11 key.
/// </summary>
public bool AllowF11 { get; set; }
/// <summary>
/// Determines whether the user may use the F12 key.
/// </summary>
public bool AllowF12 { get; set; }
/// <summary>
/// Determines whether the user may use the print screen key.
/// </summary>
public bool AllowPrintScreen { get; set; }
/// <summary>
/// Determines whether the user may use the system key.
/// </summary>
public bool AllowSystemKey { get; set; }
}
}
| 25.669565 | 78 | 0.634485 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | junbaor/seb-win-refactoring | SafeExamBrowser.Settings/Monitoring/KeyboardSettings.cs | 2,955 | C# |
using System;
using System.Reflection;
using NHibernate.Properties;
namespace Agiil.Data.ConventionMappings
{
public class SourceCollectionAccessor : IPropertyAccessor
{
public bool CanAccessThroughReflectionOptimizer => false;
public IGetter GetGetter(Type theClass, string propertyName)
{
var field = GetFieldInfo(theClass, propertyName);
if(field == null) return null;
var provider = SourceCollectionGetterSetterFactory.Create(field);
if(provider == null) return null;
return provider.GetGetter();
}
public ISetter GetSetter(Type theClass, string propertyName)
{
var field = GetFieldInfo(theClass, propertyName);
if(field == null) return null;
var provider = SourceCollectionGetterSetterFactory.Create(field);
if(provider == null) return null;
return provider.GetSetter();
}
FieldInfo GetFieldInfo(Type theClass, string propertyName)
{
var name = GetFieldName(propertyName);
return theClass.GetField(name, BindingFlags.Instance | BindingFlags.NonPublic);
}
string GetFieldName(string propertyName)
{
var firstCharacter = propertyName.Substring(0, 1);
return String.Concat(firstCharacter.ToLowerInvariant(), propertyName.Substring(1));
}
}
}
| 30.761905 | 89 | 0.71517 | [
"MIT"
] | csf-dev/agiil | Agiil.Data/ConventionMappings/SourceCollectionAccessor.cs | 1,294 | C# |
using System;
using System.Diagnostics;
using System.IO;
using System.Net;
using FluentFTP;
using System.Threading;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Linq;
#if !NOASYNC
using System.Threading.Tasks;
#endif
using System.IO.Compression;
using System.Text;
using FluentFTP.Proxy;
using System.Security.Authentication;
using Xunit;
namespace Tests {
public class Tests {
private const string Category_Code = "Code";
private const string Category_PublicFTP = "PublicFTP";
private const string Category_CustomFTP = "CustomerFTP";
// SET THESE BEFORE RUNNING ANY TESTS!
private const string m_host = "";
private const string m_user = "";
private const string m_pass = "";
private static readonly int[] connectionTypes = new[] {
(int) FtpDataConnectionType.EPSV,
(int) FtpDataConnectionType.EPRT,
(int) FtpDataConnectionType.PASV,
(int) FtpDataConnectionType.PORT
};
#region Helpers
private void OnValidateCertificate(FtpClient control, FtpSslValidationEventArgs e) {
e.Accept = true;
}
private static FtpClient NewFtpClient(string host = m_host, string username = m_user, string password = m_pass) {
return new FtpClient(host, new NetworkCredential(username, password));
}
private static FtpClient NewFtpClient_NetBsd() {
return NewFtpClient("ftp.netbsd.org", "ftp", "ftp");
}
private static FtpClient NewFtpClient_Tele2SpeedTest() {
return new FtpClient("ftp://speedtest.tele2.net/");
}
#endregion
//[Fact]
public void TestListPathWithHttp11Proxy() {
using (FtpClient cl = new FtpClientHttp11Proxy(new ProxyInfo {Host = "127.0.0.1", Port = 3128,})) // Credential = new NetworkCredential()
{
FtpTrace.WriteLine("FTPClient::ConnectionType = '" + cl.ConnectionType + "'");
cl.Credentials = new NetworkCredential(m_user, m_pass);
cl.Host = m_host;
cl.ValidateCertificate += OnValidateCertificate;
cl.DataConnectionType = FtpDataConnectionType.PASV;
cl.Connect();
foreach (var item in cl.GetListing(null, FtpListOption.SizeModify | FtpListOption.ForceNameList)) {
FtpTrace.WriteLine(item.Modified.Kind);
FtpTrace.WriteLine(item.Modified);
}
}
}
//[Fact]
public void TestListPath() {
using (var cl = NewFtpClient()) {
cl.EncryptionMode = FtpEncryptionMode.None;
cl.GetListing();
FtpTrace.WriteLine("Path listing succeeded");
cl.GetListing(null, FtpListOption.NoPath);
FtpTrace.WriteLine("No path listing succeeded");
}
}
//[Fact]
public void TestCheckCapabilities() {
using (var cl = NewFtpClient()) {
cl.CheckCapabilities = false;
Debug.Assert(cl.HasFeature(FtpCapability.NONE), "Excepted FTP capabilities to be NONE.");
}
}
#if !NOASYNC
//[Fact]
public async Task TestListPathAsync() {
using (var cl = NewFtpClient()) {
cl.EncryptionMode = FtpEncryptionMode.None;
await cl.GetListingAsync();
FtpTrace.WriteLine("Path listing succeeded");
await cl.GetListingAsync(null, FtpListOption.NoPath);
FtpTrace.WriteLine("No path listing succeeded");
}
}
#endif
//[Fact]
public void StreamResponses() {
using (var cl = NewFtpClient()) {
cl.EncryptionMode = FtpEncryptionMode.None;
cl.ValidateCertificate += OnValidateCertificate;
using (var s = (FtpDataStream) cl.OpenWrite("test.txt")) {
var r = s.CommandStatus;
FtpTrace.WriteLine("");
FtpTrace.WriteLine("Response to STOR:");
FtpTrace.WriteLine("Code: " + r.Code);
FtpTrace.WriteLine("Message: " + r.Message);
FtpTrace.WriteLine("Informational: " + r.InfoMessages);
r = s.Close();
FtpTrace.WriteLine("");
FtpTrace.WriteLine("Response after close:");
FtpTrace.WriteLine("Code: " + r.Code);
FtpTrace.WriteLine("Message: " + r.Message);
FtpTrace.WriteLine("Informational: " + r.InfoMessages);
}
}
}
#if !NOASYNC
//[Fact]
public async Task StreamResponsesAsync() {
using (var cl = NewFtpClient()) {
cl.EncryptionMode = FtpEncryptionMode.None;
cl.ValidateCertificate += OnValidateCertificate;
using (var s = (FtpDataStream) await cl.OpenWriteAsync("test.txt")) {
var r = s.CommandStatus;
FtpTrace.WriteLine("");
FtpTrace.WriteLine("Response to STOR:");
FtpTrace.WriteLine("Code: " + r.Code);
FtpTrace.WriteLine("Message: " + r.Message);
FtpTrace.WriteLine("Informational: " + r.InfoMessages);
r = s.Close();
FtpTrace.WriteLine("");
FtpTrace.WriteLine("Response after close:");
FtpTrace.WriteLine("Code: " + r.Code);
FtpTrace.WriteLine("Message: " + r.Message);
FtpTrace.WriteLine("Informational: " + r.InfoMessages);
}
}
}
#endif
//[Fact]
public void TestUnixListing() {
using (var cl = NewFtpClient()) {
if (!cl.FileExists("test.txt")) {
using (var s = cl.OpenWrite("test.txt")) {
}
}
foreach (var i in cl.GetListing(null, FtpListOption.ForceList)) {
FtpTrace.WriteLine(i);
}
}
}
[Fact]
[Trait("Category", Category_Code)]
public void TestFtpPath() {
var path = "/home/sigurdhj/errors/16.05.2014/asdasd/asd asd asd aa asd/Kooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo::asdasd";
FtpTrace.WriteLine(path.GetFtpDirectoryName());
FtpTrace.WriteLine("/foobar/boo".GetFtpDirectoryName());
FtpTrace.WriteLine("./foobar/boo".GetFtpDirectoryName());
FtpTrace.WriteLine("./foobar".GetFtpDirectoryName());
FtpTrace.WriteLine("/foobar".GetFtpDirectoryName());
FtpTrace.WriteLine("foobar".GetFtpDirectoryName());
FtpTrace.WriteLine(path.GetFtpFileName());
FtpTrace.WriteLine("/foo/bar".GetFtpFileName());
FtpTrace.WriteLine("./foo/bar".GetFtpFileName());
FtpTrace.WriteLine("./bar".GetFtpFileName());
FtpTrace.WriteLine("/bar".GetFtpFileName());
FtpTrace.WriteLine("bar".GetFtpFileName());
}
//[Fact]
public void TestGetObjectInfo() {
using (var client = NewFtpClient()) {
FtpTrace.WriteLine(client.GetObjectInfo("/public_html/temp/README.md"));
}
}
#if !NOASYNC && !CORE
//[Fact]
public async Task TestGetObjectInfoAsync() {
using (var cl = NewFtpClient()) {
cl.Encoding = Encoding.UTF8;
var item = await cl.GetObjectInfoAsync("/Examples/OpenRead.cs");
FtpTrace.WriteLine(item.ToString());
}
}
#endif
//[Fact]
public void TestManualEncoding() {
using (var cl = NewFtpClient()) {
cl.Encoding = Encoding.UTF8;
using (var s = cl.OpenWrite("test.txt")) {
}
}
}
//[Fact]
public void TestServer() {
using (var cl = NewFtpClient()) {
cl.EncryptionMode = FtpEncryptionMode.Explicit;
cl.ValidateCertificate += OnValidateCertificate;
foreach (var i in cl.GetListing("/")) {
FtpTrace.WriteLine(i.FullName);
}
}
}
private void TestServerDownload(FtpClient client, string path) {
foreach (var i in client.GetListing(path)) {
switch (i.Type) {
case FtpFileSystemObjectType.Directory:
TestServerDownload(client, i.FullName);
break;
case FtpFileSystemObjectType.File:
using (var s = client.OpenRead(i.FullName)) {
var b = new byte[8192];
var read = 0;
long total = 0;
try {
while ((read = s.Read(b, 0, b.Length)) > 0) {
total += read;
Console.Write("\r{0}/{1} {2:p} ",
total, s.Length, (double) total / (double) s.Length);
}
Console.Write("\r{0}/{1} {2:p} ",
total, s.Length, (double) total / (double) s.Length);
}
finally {
FtpTrace.WriteLine("");
}
}
break;
}
}
}
#if !NOASYNC
private async Task TestServerDownloadAsync(FtpClient client, string path) {
foreach (var i in await client.GetListingAsync(path)) {
switch (i.Type) {
case FtpFileSystemObjectType.Directory:
await TestServerDownloadAsync(client, i.FullName);
break;
case FtpFileSystemObjectType.File:
using (var s = await client.OpenReadAsync(i.FullName)) {
var b = new byte[8192];
var read = 0;
long total = 0;
try {
while ((read = await s.ReadAsync(b, 0, b.Length)) > 0) {
total += read;
Console.Write("\r{0}/{1} {2:p} ",
total, s.Length, (double) total / (double) s.Length);
}
Console.Write("\r{0}/{1} {2:p} ",
total, s.Length, (double) total / (double) s.Length);
}
finally {
FtpTrace.WriteLine("");
}
}
break;
}
}
}
#endif
#if !CORE14
[Fact]
[Trait("Category", Category_PublicFTP)]
public void TestDisposeWithMultipleThreads() {
using (var cl = NewFtpClient_NetBsd()) {
var t1 = new Thread(() => { cl.GetListing(); });
var t2 = new Thread(() => { cl.Dispose(); });
t1.Start();
Thread.Sleep(2000);
t2.Start();
t1.Join();
t2.Join();
}
}
#endif
[Fact]
[Trait("Category", Category_Code)]
public void TestConnectionFailure() {
try {
using (var cl = NewFtpClient("somefakehost")) {
cl.ConnectTimeout = 5000;
cl.Connect();
}
}
catch (System.Net.Sockets.SocketException) {
} // Expecting this
#if !NOASYNC
catch (AggregateException ex) when (ex.InnerException is System.Net.Sockets.SocketException) {
}
#endif
}
[Fact]
[Trait("Category", Category_PublicFTP)]
public void TestNetBSDServer() {
using (var client = NewFtpClient_NetBsd()) {
foreach (var item in client.GetListing(null,
FtpListOption.ForceList | FtpListOption.Modify | FtpListOption.DerefLinks)) {
FtpTrace.WriteLine(item);
if (item.Type == FtpFileSystemObjectType.Link && item.LinkObject != null) {
FtpTrace.WriteLine(item.LinkObject);
}
}
}
}
//[Fact]
public void TestGetListing() {
using (var client = NewFtpClient()) {
client.Connect();
foreach (var i in client.GetListing("/public_html/temp/", FtpListOption.ForceList | FtpListOption.Recursive)) {
//FtpTrace.WriteLine(i);
}
}
}
#if !CORE
//[Fact]
public void TestGetListingCCC() {
using (var client = NewFtpClient()) {
client.EncryptionMode = FtpEncryptionMode.Explicit;
client.PlainTextEncryption = true;
client.SslProtocols = SslProtocols.Tls;
client.ValidateCertificate += OnValidateCertificate;
client.Connect();
foreach (var i in client.GetListing("/public_html/temp/", FtpListOption.ForceList | FtpListOption.Recursive)) {
//FtpTrace.WriteLine(i);
}
// 100 K file
client.UploadFile(@"D:\Github\FluentFTP\README.md", "/public_html/temp/README.md");
client.DownloadFile(@"D:\Github\FluentFTP\README2.md", "/public_html/temp/README.md");
}
}
#endif
//[Fact]
public void TestGetMachineListing() {
using (var client = NewFtpClient()) {
client.ListingParser = FtpParser.Machine;
client.Connect();
foreach (var i in client.GetListing("/public_html/temp/", FtpListOption.Recursive)) {
//FtpTrace.WriteLine(i);
}
}
}
//[Fact]
public void TestFileZillaKick() {
using (var cl = NewFtpClient()) {
cl.EnableThreadSafeDataConnections = false;
if (cl.FileExists("TestFile.txt")) {
cl.DeleteFile("TestFile.txt");
}
try {
var s = cl.OpenWrite("TestFile.txt");
for (var i = 0; true; i++) {
s.WriteByte((byte) i);
#if CORE14
Task.Delay(100).Wait();
#else
Thread.Sleep(100);
#endif
}
//s.Close();
}
catch (FtpCommandException ex) {
FtpTrace.WriteLine("Exception caught!");
FtpTrace.WriteLine(ex.ToString());
}
}
}
[Fact]
[Trait("Category", Category_Code)]
public void TestUnixListParser() {
var parser = new FtpListParser(new FtpClient());
parser.Init(FtpOperatingSystem.Unix);
//parser.parser = FtpParser.Legacy;
var sample = new[] {
"drwxr-xr-x 7 user1 user1 512 Sep 27 2011 .",
"drwxr-xr-x 31 user1 user1 1024 Sep 27 2011 ..",
"lrwxrwxrwx 1 user1 user1 9 Sep 27 2011 data.0000 -> data.6460",
"drwxr-xr-x 10 user1 user1 512 Jun 29 2012 data.6460",
"lrwxrwxrwx 1 user1 user1 8 Sep 27 2011 sys.0000 -> sys.6460",
"drwxr-xr-x 133 user1 user1 4096 Jun 25 16:26 sys.6460"
};
foreach (var s in sample) {
var item = parser.ParseSingleLine("/", s, new List<FtpCapability>(), false);
if (item != null) {
FtpTrace.WriteLine(item);
}
}
}
[Fact]
[Trait("Category", Category_Code)]
public void TestIISParser() {
var parser = new FtpListParser(new FtpClient());
parser.Init(FtpOperatingSystem.Windows);
//parser.parser = FtpParser.Legacy;
var sample = new[] {
"03-07-13 10:02AM 901 File01.xml",
"03-07-13 10:03AM 921 File02.xml",
"03-07-13 10:04AM 904 File03.xml",
"03-07-13 10:04AM 912 File04.xml",
"03-08-13 11:10AM 912 File05.xml",
"03-15-13 02:38PM 912 File06.xml",
"03-07-13 10:16AM 909 File07.xml",
"03-07-13 10:16AM 899 File08.xml",
"03-08-13 10:22AM 904 File09.xml",
"03-25-13 07:27AM 895 File10.xml",
"03-08-13 10:22AM 6199 File11.txt",
"03-25-13 07:22AM 31444 File12.txt",
"03-25-13 07:24AM 24537 File13.txt"
};
foreach (var s in sample) {
var item = parser.ParseSingleLine("/", s, new List<FtpCapability>(), false);
if (item != null) {
FtpTrace.WriteLine(item);
}
}
}
[Fact]
[Trait("Category", Category_Code)]
public void TestOpenVMSParser() {
var parser = new FtpListParser(new FtpClient());
parser.Init(FtpOperatingSystem.VMS);
var sample = new[] {
"411_4114.TXT;1 11 21-MAR-2012 15:17 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"ACT_CC_NAME_4114.TXT;1 30 21-MAR-2012 15:17 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"ACT_CC_NUM_4114.TXT;1 30 21-MAR-2012 15:17 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"ACT_CELL_NAME_4114.TXT;1 113 21-MAR-2012 15:17 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"ACT_CELL_NUM_4114.TXT;1 113 21-MAR-2012 15:17 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"AGCY_BUDG_4114.TXT;1 63 21-MAR-2012 15:17 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"CELL_SUMM_4114.TXT;1 125 21-MAR-2012 15:17 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"CELL_SUMM_CHART_4114.PDF;2 95 21-MAR-2012 10:58 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"DET_4114.TXT;1 17472 21-MAR-2012 15:17 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"DET_4114_000.TXT;1 777 21-MAR-2012 15:18 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"DET_4114_001.TXT;1 254 21-MAR-2012 15:18 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"DET_4114_003.TXT;1 21 21-MAR-2012 15:18 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"DET_4114_006.TXT;1 22 21-MAR-2012 15:18 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"DET_4114_101.TXT;1 431 21-MAR-2012 15:18 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"DET_4114_121.TXT;1 2459 21-MAR-2012 15:18 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"DET_4114_124.TXT;1 4610 21-MAR-2012 15:18 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"DET_4114_200.TXT;1 936 21-MAR-2012 15:18 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)",
"TEL_4114.TXT;1 1178 21-MAR-2012 15:19 [TBMS,TBMS_BOSS] (RWED,RWED,,RE)"
};
foreach (var s in sample) {
var item = parser.ParseSingleLine("disk$user520:[4114.2012.Jan]", s, new List<FtpCapability>(), false);
if (item != null) {
FtpTrace.WriteLine(item);
}
}
}
//[Fact]
public void TestDirectoryWithDots() {
using (var cl = NewFtpClient()) {
cl.Connect();
// FTP server set to timeout after 5 seconds.
//Thread.Sleep(6000);
cl.GetListing("Test.Directory", FtpListOption.ForceList);
cl.SetWorkingDirectory("Test.Directory");
cl.GetListing(null, FtpListOption.ForceList);
}
}
//[Fact]
public void TestDispose() {
using (var cl = NewFtpClient()) {
cl.Connect();
// FTP server set to timeout after 5 seconds.
//Thread.Sleep(6000);
foreach (var item in cl.GetListing()) {
}
}
}
//[Fact]
public void TestHash() {
using (var cl = NewFtpClient()) {
cl.Connect();
FtpTrace.WriteLine("Supported HASH algorithms: " + cl.HashAlgorithms);
FtpTrace.WriteLine("Current HASH algorithm: " + cl.GetHashAlgorithm());
foreach (FtpHashAlgorithm alg in Enum.GetValues(typeof(FtpHashAlgorithm))) {
if (alg != FtpHashAlgorithm.NONE && cl.HashAlgorithms.HasFlag(alg)) {
FtpHash hash = null;
cl.SetHashAlgorithm(alg);
hash = cl.GetHash("LICENSE.TXT");
if (hash.IsValid) {
Debug.Assert(hash.Verify(@"C:\FTPTEST\LICENSE.TXT"), "The computed hash didn't match or the hash object was invalid!");
}
}
}
}
}
#if !NOASYNC
//[Fact]
public async Task TestHashAsync() {
using (var cl = NewFtpClient()) {
await cl.ConnectAsync();
FtpTrace.WriteLine("Supported HASH algorithms: " + cl.HashAlgorithms);
FtpTrace.WriteLine("Current HASH algorithm: " + await cl.GetHashAlgorithmAsync());
foreach (FtpHashAlgorithm alg in Enum.GetValues(typeof(FtpHashAlgorithm))) {
if (alg != FtpHashAlgorithm.NONE && cl.HashAlgorithms.HasFlag(alg)) {
FtpHash hash = null;
await cl.SetHashAlgorithmAsync(alg);
hash = await cl.GetHashAsync("LICENSE.TXT");
if (hash.IsValid) {
Debug.Assert(hash.Verify(@"C:\FTPTEST\LICENSE.TXT"), "The computed hash didn't match or the hash object was invalid!");
}
}
}
}
}
#endif
//[Fact]
public void TestReset() {
using (var cl = NewFtpClient()) {
cl.Connect();
using (var istream = cl.OpenRead("LICENSE.TXT", 10)) {
}
}
}
[Fact]
[Trait("Category", Category_PublicFTP)]
public void GetPublicFTPServerListing() {
using (var cl = NewFtpClient_Tele2SpeedTest()) {
cl.Connect();
FtpTrace.WriteLine(cl.Capabilities);
foreach (var item in cl.GetListing(null, FtpListOption.Recursive)) {
FtpTrace.WriteLine(item);
}
}
}
[Fact]
[Trait("Category", Category_Code)]
public void TestMODCOMP_PWD_Parser() {
var response = "PWD = ~TNA=AMP,VNA=VOL03,FNA=U-ED-B2-USL";
Match m;
if ((m = Regex.Match(response, "PWD = (?<pwd>.*)")).Success) {
FtpTrace.WriteLine("PWD: " + m.Groups["pwd"].Value);
}
}
//[Fact]
public void TestNameListing() {
using (var cl = NewFtpClient()) {
cl.ValidateCertificate += OnValidateCertificate;
cl.DataConnectionType = FtpDataConnectionType.PASV;
//cl.EncryptionMode = FtpEncryptionMode.Explicit;
//cl.SocketPollInterval = 5000;
cl.Connect();
//FtpTrace.WriteLine("Sleeping for 10 seconds to force timeout.");
//Thread.Sleep(10000);
var items = cl.GetListing();
foreach (var item in items) {
//FtpTrace.WriteLine(item.FullName);
//FtpTrace.WriteLine(item.Modified.Kind);
//FtpTrace.WriteLine(item.Modified);
}
}
}
//[Fact]
public void TestNameListingFTPS() {
using (var cl = NewFtpClient()) {
cl.ValidateCertificate += OnValidateCertificate;
//cl.DataConnectionType = FtpDataConnectionType.PASV;
cl.EncryptionMode = FtpEncryptionMode.Explicit;
cl.Connect();
//FtpTrace.WriteLine("Sleeping for 10 seconds to force timeout.");
//Thread.Sleep(10000);
foreach (var item in cl.GetListing()) {
FtpTrace.WriteLine(item.FullName);
//FtpTrace.WriteLine(item.Modified.Kind);
//FtpTrace.WriteLine(item.Modified);
}
}
}
#if !CORE14
//[Fact] // Beware: Completely ignores thrown exceptions - Doesn't actually test anything!
public FtpClient Connect() {
var threads = new List<Thread>();
var cl = new FtpClient();
cl.ValidateCertificate += OnValidateCertificate;
//cl.EncryptionMode = FtpEncryptionMode.Explicit;
for (var i = 0; i < 1; i++) {
var count = i;
var t = new Thread(new ThreadStart(delegate {
cl.Credentials = new NetworkCredential(m_user, m_pass);
cl.Host = m_host;
cl.Connect();
for (var j = 0; j < 10; j++) {
cl.Execute("NOOP");
}
if (count % 2 == 0) {
cl.Disconnect();
}
}));
t.Start();
threads.Add(t);
}
while (threads.Count > 0) {
threads[0].Join();
threads.RemoveAt(0);
}
return cl;
}
public void Upload(FtpClient cl) {
var root = @"..\..\..";
var threads = new List<Thread>();
foreach (var s in Directory.GetFiles(root, "*", SearchOption.AllDirectories)) {
var file = s;
if (file.Contains(@"\.git")) {
continue;
}
var t = new Thread(new ThreadStart(delegate { DoUpload(cl, root, file); }));
t.Start();
threads.Add(t);
}
while (threads.Count > 0) {
threads[0].Join();
threads.RemoveAt(0);
}
}
#endif
public void DoUpload(FtpClient cl, string root, string s) {
var type = FtpDataType.Binary;
var path = Path.GetDirectoryName(s).Replace(root, "");
var name = Path.GetFileName(s);
if (Path.GetExtension(s).ToLower() == ".cs" || Path.GetExtension(s).ToLower() == ".txt") {
type = FtpDataType.ASCII;
}
if (!cl.DirectoryExists(path)) {
cl.CreateDirectory(path, true);
}
else if (cl.FileExists(string.Format("{0}/{1}", path, name))) {
cl.DeleteFile(string.Format("{0}/{1}", path, name));
}
using (
Stream istream = new FileStream(s, FileMode.Open, FileAccess.Read),
ostream = cl.OpenWrite(s.Replace(root, ""), type)) {
var buf = new byte[8192];
var read = 0;
while ((read = istream.Read(buf, 0, buf.Length)) > 0) {
ostream.Write(buf, 0, read);
}
if (cl.HashAlgorithms != FtpHashAlgorithm.NONE) {
Debug.Assert(cl.GetHash(s.Replace(root, "")).Verify(s), "The computed hashes don't match!");
}
}
/*if (!cl.GetHash(s.Replace(root, "")).Verify(s))
throw new Exception("Hashes didn't match!");*/
}
#if !CORE14
public void Download(FtpClient cl) {
var threads = new List<Thread>();
Download(threads, cl, "/");
while (threads.Count > 0) {
threads[0].Join();
lock (threads) {
threads.RemoveAt(0);
}
}
}
public void Download(List<Thread> threads, FtpClient cl, string path) {
foreach (var item in cl.GetListing(path)) {
if (item.Type == FtpFileSystemObjectType.Directory) {
Download(threads, cl, item.FullName);
}
else if (item.Type == FtpFileSystemObjectType.File) {
var file = item.FullName;
var t = new Thread(new ThreadStart(delegate { DoDownload(cl, file); }));
t.Start();
lock (threads) {
threads.Add(t);
}
}
}
}
#endif
public void DoDownload(FtpClient cl, string file) {
using (var s = cl.OpenRead(file)) {
var buf = new byte[8192];
while (s.Read(buf, 0, buf.Length) > 0) {
;
}
}
}
public void Delete(FtpClient cl) {
DeleteDirectory(cl, "/");
}
public void DeleteDirectory(FtpClient cl, string path) {
foreach (var item in cl.GetListing(path)) {
if (item.Type == FtpFileSystemObjectType.File) {
cl.DeleteFile(item.FullName);
}
else if (item.Type == FtpFileSystemObjectType.Directory) {
DeleteDirectory(cl, item.FullName);
cl.DeleteDirectory(item.FullName);
}
}
}
//[Fact]
public void TestUTF8() {
// the following file name was reported in the discussions as having
// problems:
// https://netftp.codeplex.com/discussions/445090
var filename = "Verbundmörtel Zubehör + Technische Daten DE.pdf";
using (var cl = NewFtpClient()) {
cl.DataConnectionType = FtpDataConnectionType.PASV;
cl.InternetProtocolVersions = FtpIpVersion.ANY;
using (var ostream = cl.OpenWrite(filename))
using (var writer = new StreamWriter(ostream)) {
writer.WriteLine(filename);
}
}
}
//[Fact]
public void TestUploadDownloadFile() {
using (var cl = NewFtpClient()) {
cl.Connect();
// 100 K file
cl.UploadFile(@"D:\Github\FluentFTP\README.md", "/public_html/temp/README.md");
cl.DownloadFile(@"D:\Github\FluentFTP\README2.md", "/public_html/temp/README.md");
/*
// 10 M file
cl.UploadFile(@"D:\Drivers\mb_driver_intel_irst_6series.exe", "/public_html/temp/big.txt");
cl.Rename("/public_html/temp/big.txt", "/public_html/temp/big2.txt");
cl.DownloadFile(@"D:\Drivers\mb_driver_intel_irst_6series_2.exe", "/public_html/temp/big2.txt");
*/
}
}
#if !NOASYNC
//[Fact]
public async Task TestUploadDownloadFileAsync() {
using (var cl = NewFtpClient()) {
// 100 K file
await cl.UploadFileAsync(@"D:\Github\FluentFTP\README.md", "/public_html/temp/README.md");
await cl.DownloadFileAsync(@"D:\Github\FluentFTP\README2.md", "/public_html/temp/README.md");
/*
// 10 M file
await cl.UploadFileAsync(@"D:\Drivers\mb_driver_intel_irst_6series.exe", "/public_html/temp/big.txt");
await cl.RenameAsync("/public_html/temp/big.txt", "/public_html/temp/big2.txt");
await cl.DownloadFileAsync(@"D:\Drivers\mb_driver_intel_irst_6series_2.exe", "/public_html/temp/big2.txt");
*/
}
}
#endif
//[Fact]
public void TestUploadDownloadFile_UTF() {
using (var cl = NewFtpClient()) {
// 100 K file
cl.UploadFile(@"D:\Tests\Caffè.jpg", "/public_html/temp/Caffè.jpg");
cl.DownloadFile(@"D:\Tests\Caffè2.jpg", "/public_html/temp/Caffè.jpg");
/*
// 10 M file
cl.UploadFile(@"D:\Drivers\mb_driver_intel_irst_6series.exe", "/public_html/temp/big.txt");
cl.Rename("/public_html/temp/big.txt", "/public_html/temp/big2.txt");
cl.DownloadFile(@"D:\Drivers\mb_driver_intel_irst_6series_2.exe", "/public_html/temp/big2.txt");
*/
}
}
//[Fact]
public void TestUploadDownloadFile_ANSI() {
using (var cl = NewFtpClient()) {
cl.Encoding = Encoding.GetEncoding(1252);
// 100 K file
var rpath = "/public_html/temp/Caffè.jpg";
cl.UploadFile(@"D:\Tests\Caffè.jpg", rpath);
cl.DownloadFile(@"D:\Tests\Caffè2.jpg", rpath);
/*
// 10 M file
cl.UploadFile(@"D:\Drivers\mb_driver_intel_irst_6series.exe", "/public_html/temp/big.txt");
cl.Rename("/public_html/temp/big.txt", "/public_html/temp/big2.txt");
cl.DownloadFile(@"D:\Drivers\mb_driver_intel_irst_6series_2.exe", "/public_html/temp/big2.txt");
*/
}
}
//[Fact]
public void TestUploadDownloadManyFiles() {
using (var cl = NewFtpClient()) {
cl.EnableThreadSafeDataConnections = false;
cl.Connect();
// 100 K file
for (var i = 0; i < 3; i++) {
FtpTrace.WriteLine(" ------------- UPLOAD " + i + " ------------------");
cl.UploadFile(@"D:\Drivers\mb_driver_intel_bootdisk_irst_64_6series.exe", "/public_html/temp/small.txt");
}
// 100 K file
for (var i = 0; i < 3; i++) {
FtpTrace.WriteLine(" ------------- DOWNLOAD " + i + " ------------------");
cl.DownloadFile(@"D:\Drivers\test\file" + i + ".exe", "/public_html/temp/small.txt");
}
FtpTrace.WriteLine(" ------------- ALL DONE! ------------------");
}
}
#if !NOASYNC
//[Fact]
public async Task TestUploadDownloadManyFilesAsync() {
using (var cl = NewFtpClient()) {
cl.EnableThreadSafeDataConnections = false;
await cl.ConnectAsync();
// 100 K file
for (var i = 0; i < 3; i++) {
FtpTrace.WriteLine(" ------------- UPLOAD " + i + " ------------------");
await cl.UploadFileAsync(@"D:\Drivers\mb_driver_intel_bootdisk_irst_64_6series.exe", "/public_html/temp/small.txt");
}
// 100 K file
for (var i = 0; i < 3; i++) {
FtpTrace.WriteLine(" ------------- DOWNLOAD " + i + " ------------------");
await cl.DownloadFileAsync(@"D:\Drivers\test\file" + i + ".exe", "/public_html/temp/small.txt");
}
FtpTrace.WriteLine(" ------------- ALL DONE! ------------------");
}
}
#endif
//[Fact]
public void TestUploadDownloadManyFiles2() {
using (var cl = NewFtpClient()) {
cl.EnableThreadSafeDataConnections = false;
cl.Connect();
// upload many
cl.UploadFiles(new[] {@"D:\Drivers\test\file0.exe", @"D:\Drivers\test\file1.exe", @"D:\Drivers\test\file2.exe", @"D:\Drivers\test\file3.exe", @"D:\Drivers\test\file4.exe"}, "/public_html/temp/", FtpRemoteExists.Skip);
// download many
cl.DownloadFiles(@"D:\Drivers\test\", new[] {@"/public_html/temp/file0.exe", @"/public_html/temp/file1.exe", @"/public_html/temp/file2.exe", @"/public_html/temp/file3.exe", @"/public_html/temp/file4.exe"}, FtpLocalExists.Append);
FtpTrace.WriteLine(" ------------- ALL DONE! ------------------");
cl.Dispose();
}
}
#if !NOASYNC
//[Fact]
public async Task TestUploadDownloadManyFiles2Async() {
using (var cl = NewFtpClient()) {
cl.EnableThreadSafeDataConnections = false;
await cl.ConnectAsync();
// upload many
await cl.UploadFilesAsync(new[] {@"D:\Drivers\test\file0.exe", @"D:\Drivers\test\file1.exe", @"D:\Drivers\test\file2.exe", @"D:\Drivers\test\file3.exe", @"D:\Drivers\test\file4.exe"}, "/public_html/temp/", createRemoteDir: false);
// download many
await cl.DownloadFilesAsync(@"D:\Drivers\test\", new[] {@"/public_html/temp/file0.exe", @"/public_html/temp/file1.exe", @"/public_html/temp/file2.exe", @"/public_html/temp/file3.exe", @"/public_html/temp/file4.exe"}, FtpLocalExists.Append);
FtpTrace.WriteLine(" ------------- ALL DONE! ------------------");
cl.Dispose();
}
}
#endif
//[Fact]
public void TestUploadDownloadZeroLenFile() {
using (var cl = NewFtpClient()) {
// 0 KB file
cl.UploadFile(@"D:\zerolen.txt", "/public_html/temp/zerolen.txt");
cl.DownloadFile(@"D:\zerolen2.txt", "/public_html/temp/zerolen.txt");
}
}
//[Fact]
public void TestListSpacedPath() {
using (var cl = NewFtpClient()) {
cl.EncryptionMode = FtpEncryptionMode.Explicit;
cl.ValidateCertificate += OnValidateCertificate;
foreach (var i in cl.GetListing("/public_html/temp/spaced folder/")) {
FtpTrace.WriteLine(i.FullName);
}
}
}
//[Fact]
public void TestFilePermissions() {
using (var cl = NewFtpClient()) {
foreach (var i in cl.GetListing("/public_html/temp/")) {
FtpTrace.WriteLine(i.Name + " - " + i.Chmod);
}
var o = cl.GetFilePermissions("/public_html/temp/file3.exe");
var o2 = cl.GetFilePermissions("/public_html/temp/README.md");
cl.SetFilePermissions("/public_html/temp/file3.exe", 646);
var o22 = cl.GetChmod("/public_html/temp/file3.exe");
}
}
//[Fact]
public void TestFileExists() {
using (var cl = NewFtpClient()) {
var f1_yes = cl.FileExists("/public_html");
var f2_yes = cl.FileExists("/public_html/temp");
var f3_yes = cl.FileExists("/public_html/temp/");
var f3_no = cl.FileExists("/public_html/tempa/");
var f4_yes = cl.FileExists("/public_html/temp/README.md");
var f4_no = cl.FileExists("/public_html/temp/README");
var f5_yes = cl.FileExists("/public_html/temp/Caffè.jpg");
var f5_no = cl.FileExists("/public_html/temp/Caffèoo.jpg");
cl.SetWorkingDirectory("/public_html/");
var z_f2_yes = cl.FileExists("temp");
var z_f3_yes = cl.FileExists("temp/");
var z_f3_no = cl.FileExists("tempa/");
var z_f4_yes = cl.FileExists("temp/README.md");
var z_f4_no = cl.FileExists("temp/README");
var z_f5_yes = cl.FileExists("temp/Caffè.jpg");
var z_f5_no = cl.FileExists("temp/Caffèoo.jpg");
}
}
//[Fact]
public void TestDeleteDirectory() {
using (var cl = NewFtpClient()) {
cl.DeleteDirectory("/public_html/temp/otherdir/");
cl.DeleteDirectory("/public_html/temp/spaced folder/");
}
}
//[Fact]
public void TestMoveFiles() {
using (var cl = NewFtpClient()) {
cl.MoveFile("/public_html/temp/README.md", "/public_html/temp/README_moved.md");
cl.MoveDirectory("/public_html/temp/dir/", "/public_html/temp/dir_moved/");
}
}
[Fact]
public void TestAutoDetect() {
using (var cl = NewFtpClient_Tele2SpeedTest()) {
var profiles = cl.AutoDetect(false);
if (profiles.Count > 0) {
var code = profiles[0].ToCode();
}
}
}
[Fact]
public void TestAutoConnect() {
using (var cl = NewFtpClient_Tele2SpeedTest()) {
var profile = cl.AutoConnect();
if (profile != null) {
var code = profile.ToCode();
}
}
}
//[Fact]
public void TestQuickDownloadFilePublic() {
using (var cl = NewFtpClient()) {
cl.Connect();
//cl.QuickTransferLimit = 100000000; // 100 MB limit
var sw = StartTimer();
cl.DownloadFile(@"D:\Temp\10MB.zip", "10MB.zip");
cl.DownloadFile(@"D:\Temp\10MB.zip", "10MB.zip");
StopTimer(sw, "Downloading with Quick Transfer");
//cl.QuickTransferLimit = 0; // disabled
var sw2 = StartTimer();
cl.DownloadFile(@"D:\Temp\10MB.zip", "10MB.zip");
cl.DownloadFile(@"D:\Temp\10MB.zip", "10MB.zip");
StopTimer(sw2, "Downloading with Filestream");
}
}
//[Fact]
public void TestQuickDownloadFilePublic2() {
using (var cl = NewFtpClient()) {
cl.Connect();
//cl.QuickTransferLimit = 100000000; // 100 MB limit
var sw = StartTimer();
cl.DownloadFile(@"D:\Temp\100KB.zip", "100KB.zip");
cl.DownloadFile(@"D:\Temp\100KB.zip", "100KB.zip");
cl.DownloadFile(@"D:\Temp\100KB.zip", "100KB.zip");
cl.DownloadFile(@"D:\Temp\100KB.zip", "100KB.zip");
cl.DownloadFile(@"D:\Temp\100KB.zip", "100KB.zip");
StopTimer(sw, "Downloading with Quick Transfer");
//cl.QuickTransferLimit = 0; // disabled
var sw2 = StartTimer();
cl.DownloadFile(@"D:\Temp\100KB.zip", "100KB.zip");
cl.DownloadFile(@"D:\Temp\100KB.zip", "100KB.zip");
cl.DownloadFile(@"D:\Temp\100KB.zip", "100KB.zip");
cl.DownloadFile(@"D:\Temp\100KB.zip", "100KB.zip");
cl.DownloadFile(@"D:\Temp\100KB.zip", "100KB.zip");
StopTimer(sw2, "Downloading with Filestream");
}
}
//[Fact]
public void TestUploadDownloadFilePublic() {
using (var cl = NewFtpClient()) {
cl.Connect();
cl.DownloadFile(@"D:\Temp\10MB.zip", "10MB.zip");
cl.DownloadFile(@"D:\Temp\1KB.zip", "1KB.zip");
cl.UploadFile(@"D:\Github\FluentFTP\README.md", "/upload/README.md");
cl.UploadFile(@"D:\Github\FluentFTP\.github\contributors.png", "/upload/contributors.png");
}
}
private Stopwatch StartTimer() {
var sw = new Stopwatch();
sw.Start();
return sw;
}
private void StopTimer(Stopwatch sw, string action) {
sw.Stop();
FtpTrace.WriteLine("");
FtpTrace.WriteLine("---------------------------------------------------");
FtpTrace.WriteLine("! " + action + " took " + ((double)sw.ElapsedMilliseconds / 1000) + " seconds");
FtpTrace.WriteLine("---------------------------------------------------");
}
}
} | 29.176421 | 262 | 0.630491 | [
"MIT"
] | kolorotur/FluentFTP | FluentFTP.Tests/Tests.cs | 34,910 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HackerFerretSoftware.SendOwl.Model
{
public class License
{
public int id { get; set; }
public int order_id { get; set; }
public int product_id { get; set; }
public string key { get; set; }
public bool order_refunded { get; set; }
}
public class LicenseWrapper
{
public License license { get; set; }
}
public class Attachment
{
public string filename { get; set; }
public int size { get; set; }
}
public class Product
{
public int id { get; set; }
public string product_type { get; set; }
public string name { get; set; }
public bool pdf_stamping { get; set; }
public string sales_limit { get; set; }
public string self_hosted_url { get; set; }
public string license_type { get; set; }
public string license_fetch_url { get; set; }
public string shopify_variant_id { get; set; }
public string custom_field { get; set; }
public string created_at { get; set; }
public string updated_at { get; set; }
public string price { get; set; }
public string currency_code { get; set; }
public string product_image_url { get; set; }
public Attachment attachment { get; set; }
public string instant_buy_url { get; set; }
public string add_to_cart_url { get; set; }
}
public class ProductWrapper
{
public Product product { get; set; }
}
}
| 28.333333 | 54 | 0.603096 | [
"Unlicense",
"MIT"
] | musicm122/AuthenticationService | src/SendOwlService/Model/JsonModels.cs | 1,617 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>
// Template Source: Templates\CSharp\Requests\EntityCollectionRequest.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Linq.Expressions;
/// <summary>
/// The type DeviceAppManagementManagedAppRegistrationsCollectionRequest.
/// </summary>
public partial class DeviceAppManagementManagedAppRegistrationsCollectionRequest : BaseRequest, IDeviceAppManagementManagedAppRegistrationsCollectionRequest
{
/// <summary>
/// Constructs a new DeviceAppManagementManagedAppRegistrationsCollectionRequest.
/// </summary>
/// <param name="requestUrl">The URL for the built request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
/// <param name="options">Query and header option name value pairs for the request.</param>
public DeviceAppManagementManagedAppRegistrationsCollectionRequest(
string requestUrl,
IBaseClient client,
IEnumerable<Option> options)
: base(requestUrl, client, options)
{
}
/// <summary>
/// Adds the specified ManagedAppRegistration to the collection via POST.
/// </summary>
/// <param name="managedAppRegistration">The ManagedAppRegistration to add.</param>
/// <returns>The created ManagedAppRegistration.</returns>
public System.Threading.Tasks.Task<ManagedAppRegistration> AddAsync(ManagedAppRegistration managedAppRegistration)
{
return this.AddAsync(managedAppRegistration, CancellationToken.None);
}
/// <summary>
/// Adds the specified ManagedAppRegistration to the collection via POST.
/// </summary>
/// <param name="managedAppRegistration">The ManagedAppRegistration to add.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The created ManagedAppRegistration.</returns>
public System.Threading.Tasks.Task<ManagedAppRegistration> AddAsync(ManagedAppRegistration managedAppRegistration, CancellationToken cancellationToken)
{
this.ContentType = "application/json";
this.Method = "POST";
managedAppRegistration.ODataType = string.Concat("#", StringHelper.ConvertTypeToLowerCamelCase(managedAppRegistration.GetType().FullName));
return this.SendAsync<ManagedAppRegistration>(managedAppRegistration, cancellationToken);
}
/// <summary>
/// Gets the collection page.
/// </summary>
/// <returns>The collection page.</returns>
public System.Threading.Tasks.Task<IDeviceAppManagementManagedAppRegistrationsCollectionPage> GetAsync()
{
return this.GetAsync(CancellationToken.None);
}
/// <summary>
/// Gets the collection page.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The collection page.</returns>
public async System.Threading.Tasks.Task<IDeviceAppManagementManagedAppRegistrationsCollectionPage> GetAsync(CancellationToken cancellationToken)
{
this.Method = "GET";
var response = await this.SendAsync<DeviceAppManagementManagedAppRegistrationsCollectionResponse>(null, cancellationToken).ConfigureAwait(false);
if (response != null && response.Value != null && response.Value.CurrentPage != null)
{
if (response.AdditionalData != null)
{
object nextPageLink;
response.AdditionalData.TryGetValue("@odata.nextLink", out nextPageLink);
var nextPageLinkString = nextPageLink as string;
if (!string.IsNullOrEmpty(nextPageLinkString))
{
response.Value.InitializeNextPageRequest(
this.Client,
nextPageLinkString);
}
// Copy the additional data collection to the page itself so that information is not lost
response.Value.AdditionalData = response.AdditionalData;
}
return response.Value;
}
return null;
}
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="value">The expand value.</param>
/// <returns>The request object to send.</returns>
public IDeviceAppManagementManagedAppRegistrationsCollectionRequest Expand(string value)
{
this.QueryOptions.Add(new QueryOption("$expand", value));
return this;
}
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="expandExpression">The expression from which to calculate the expand value.</param>
/// <returns>The request object to send.</returns>
public IDeviceAppManagementManagedAppRegistrationsCollectionRequest Expand(Expression<Func<ManagedAppRegistration, object>> expandExpression)
{
if (expandExpression == null)
{
throw new ArgumentNullException(nameof(expandExpression));
}
string error;
string value = ExpressionExtractHelper.ExtractMembers(expandExpression, out error);
if (value == null)
{
throw new ArgumentException(error, nameof(expandExpression));
}
else
{
this.QueryOptions.Add(new QueryOption("$expand", value));
}
return this;
}
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="value">The select value.</param>
/// <returns>The request object to send.</returns>
public IDeviceAppManagementManagedAppRegistrationsCollectionRequest Select(string value)
{
this.QueryOptions.Add(new QueryOption("$select", value));
return this;
}
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="selectExpression">The expression from which to calculate the select value.</param>
/// <returns>The request object to send.</returns>
public IDeviceAppManagementManagedAppRegistrationsCollectionRequest Select(Expression<Func<ManagedAppRegistration, object>> selectExpression)
{
if (selectExpression == null)
{
throw new ArgumentNullException(nameof(selectExpression));
}
string error;
string value = ExpressionExtractHelper.ExtractMembers(selectExpression, out error);
if (value == null)
{
throw new ArgumentException(error, nameof(selectExpression));
}
else
{
this.QueryOptions.Add(new QueryOption("$select", value));
}
return this;
}
/// <summary>
/// Adds the specified top value to the request.
/// </summary>
/// <param name="value">The top value.</param>
/// <returns>The request object to send.</returns>
public IDeviceAppManagementManagedAppRegistrationsCollectionRequest Top(int value)
{
this.QueryOptions.Add(new QueryOption("$top", value.ToString()));
return this;
}
/// <summary>
/// Adds the specified filter value to the request.
/// </summary>
/// <param name="value">The filter value.</param>
/// <returns>The request object to send.</returns>
public IDeviceAppManagementManagedAppRegistrationsCollectionRequest Filter(string value)
{
this.QueryOptions.Add(new QueryOption("$filter", value));
return this;
}
/// <summary>
/// Adds the specified skip value to the request.
/// </summary>
/// <param name="value">The skip value.</param>
/// <returns>The request object to send.</returns>
public IDeviceAppManagementManagedAppRegistrationsCollectionRequest Skip(int value)
{
this.QueryOptions.Add(new QueryOption("$skip", value.ToString()));
return this;
}
/// <summary>
/// Adds the specified orderby value to the request.
/// </summary>
/// <param name="value">The orderby value.</param>
/// <returns>The request object to send.</returns>
public IDeviceAppManagementManagedAppRegistrationsCollectionRequest OrderBy(string value)
{
this.QueryOptions.Add(new QueryOption("$orderby", value));
return this;
}
}
}
| 43.259091 | 160 | 0.607649 | [
"MIT"
] | OfficeGlobal/msgraph-beta-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/DeviceAppManagementManagedAppRegistrationsCollectionRequest.cs | 9,517 | C# |
using System.IO;
using System.Runtime.Serialization;
using WolvenKit.CR2W.Reflection;
using FastMember;
using static WolvenKit.CR2W.Types.Enums;
namespace WolvenKit.CR2W.Types
{
[DataContract(Namespace = "")]
[REDMeta]
public class W3Effect_POIGorA10Effect : CBaseGameplayEffect
{
public W3Effect_POIGorA10Effect(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name){ }
public static new CVariable Create(CR2WFile cr2w, CVariable parent, string name) => new W3Effect_POIGorA10Effect(cr2w, parent, name);
public override void Read(BinaryReader file, uint size) => base.Read(file, size);
public override void Write(BinaryWriter file) => base.Write(file);
}
} | 31.130435 | 136 | 0.75 | [
"MIT"
] | DerinHalil/CP77Tools | CP77.CR2W/Types/W3/RTTIConvert/W3Effect_POIGorA10Effect.cs | 694 | C# |
namespace Capstone.Net.X86 {
/// <summary>
/// X86 Encoding.
/// </summary>
public sealed class X86Encoding {
/// <summary>
/// Get Displacement Offset.
/// </summary>
public byte DisplacementOffset { get; }
/// <summary>
/// Get Displacement Size.
/// </summary>
public byte DisplacementSize { get; }
/// <summary>
/// Get Immediate Offset.
/// </summary>
public byte ImmediateOffset { get; }
/// <summary>
/// Get Immediate Size.
/// </summary>
public byte ImmediateSize { get; }
/// <summary>
/// Get ModR/M Offset.
/// </summary>
public byte ModRmOffset { get; }
/// <summary>
/// Create an X86 Encoding.
/// </summary>
/// <param name="nativeEncoding">
/// A native X86 encoding.
/// </param>
internal X86Encoding(ref NativeX86Encoding nativeEncoding) {
this.DisplacementOffset = nativeEncoding.DisplacementOffset;
this.DisplacementSize = nativeEncoding.DisplacementSize;
this.ImmediateOffset = nativeEncoding.ImmediateOffset;
this.ImmediateSize = nativeEncoding.ImmediateSize;
this.ModRmOffset = nativeEncoding.ModRmOffset;
}
}
} | 30.6 | 72 | 0.5374 | [
"MIT"
] | csersoft/Capstone.NET | Capstone.Net/X86/X86Encoding.cs | 1,379 | C# |
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) Under one or more
contributor license agreements. See the NOTICE file distributed with
this work for Additional information regarding copyright ownership.
The ASF licenses this file to You Under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed Under the License is distributed on an "AS Is" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations Under the License.
==================================================================== */
/*
* NumberRecord.java
*
* Created on October 1, 2001, 8:01 PM
*/
namespace NPOI.HSSF.Record
{
using NPOI.Util;
using System;
using System.Text;
using System.IO;
using System.Collections;
using NPOI.SS.Util;
/**
* Contains a numeric cell value.
* REFERENCE: PG 334 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
* @author Andrew C. Oliver (acoliver at apache dot org)
* @author Jason Height (jheight at chariot dot net dot au)
* @version 2.0-pre
*/
public class NumberRecord :CellRecord
{
public const short sid = 0x203;
private double field_4_value;
/** Creates new NumberRecord */
public NumberRecord()
{
}
/**
* Constructs a Number record and Sets its fields appropriately.
*
* @param in the RecordInputstream to Read the record from
*/
public NumberRecord(RecordInputStream in1):base(in1)
{
field_4_value = in1.ReadDouble();
}
protected override String RecordName
{
get
{
return "NUMBER";
}
}
protected override void AppendValueText(StringBuilder sb)
{
sb.Append(" .value= ").Append(NumberToTextConverter.ToText(field_4_value));
}
protected override void SerializeValue(ILittleEndianOutput out1)
{
out1.WriteDouble(Value);
}
protected override int ValueDataSize
{
get
{
return 8;
}
}
/**
* Get the value for the cell
*
* @return double representing the value
*/
public double Value
{
get { return field_4_value; }
set { field_4_value = value; }
}
public override short Sid
{
get { return sid; }
}
public override object Clone()
{
NumberRecord rec = new NumberRecord();
CopyBaseFields(rec);
rec.field_4_value = field_4_value;
return rec;
}
}
} | 28.80531 | 89 | 0.543164 | [
"Apache-2.0"
] | sunshinele/npoi | main/HSSF/Record/NumberRecord.cs | 3,255 | C# |
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Xml.Serialization;
namespace Workday.AcademicFoundation
{
[GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace = "urn:com.workday/bsvc")]
[Serializable]
public class Custom_ID_DataType : INotifyPropertyChanged
{
private string idField;
private Custom_ID_TypeObjectType iD_Type_ReferenceField;
private DateTime issued_DateField;
private bool issued_DateFieldSpecified;
private DateTime expiration_DateField;
private bool expiration_DateFieldSpecified;
private OrganizationObjectType organization_ID_ReferenceField;
private string custom_DescriptionField;
[method: CompilerGenerated]
[CompilerGenerated]
public event PropertyChangedEventHandler PropertyChanged;
[XmlElement(Order = 0)]
public string ID
{
get
{
return this.idField;
}
set
{
this.idField = value;
this.RaisePropertyChanged("ID");
}
}
[XmlElement(Order = 1)]
public Custom_ID_TypeObjectType ID_Type_Reference
{
get
{
return this.iD_Type_ReferenceField;
}
set
{
this.iD_Type_ReferenceField = value;
this.RaisePropertyChanged("ID_Type_Reference");
}
}
[XmlElement(DataType = "date", Order = 2)]
public DateTime Issued_Date
{
get
{
return this.issued_DateField;
}
set
{
this.issued_DateField = value;
this.RaisePropertyChanged("Issued_Date");
}
}
[XmlIgnore]
public bool Issued_DateSpecified
{
get
{
return this.issued_DateFieldSpecified;
}
set
{
this.issued_DateFieldSpecified = value;
this.RaisePropertyChanged("Issued_DateSpecified");
}
}
[XmlElement(DataType = "date", Order = 3)]
public DateTime Expiration_Date
{
get
{
return this.expiration_DateField;
}
set
{
this.expiration_DateField = value;
this.RaisePropertyChanged("Expiration_Date");
}
}
[XmlIgnore]
public bool Expiration_DateSpecified
{
get
{
return this.expiration_DateFieldSpecified;
}
set
{
this.expiration_DateFieldSpecified = value;
this.RaisePropertyChanged("Expiration_DateSpecified");
}
}
[XmlElement(Order = 4)]
public OrganizationObjectType Organization_ID_Reference
{
get
{
return this.organization_ID_ReferenceField;
}
set
{
this.organization_ID_ReferenceField = value;
this.RaisePropertyChanged("Organization_ID_Reference");
}
}
[XmlElement(Order = 5)]
public string Custom_Description
{
get
{
return this.custom_DescriptionField;
}
set
{
this.custom_DescriptionField = value;
this.RaisePropertyChanged("Custom_Description");
}
}
protected void RaisePropertyChanged(string propertyName)
{
PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if (propertyChanged != null)
{
propertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
}
| 19.74359 | 136 | 0.715909 | [
"MIT"
] | matteofabbri/Workday.WebServices | Workday.AcademicFoundation/Custom_ID_DataType.cs | 3,080 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.