C#

Showing 28 posts.

Use sqllite at Xamarin.Form

Posted in Xamarin, C# by dake

Read more...

Xamarin- Create Master/Detail page

Posted in Xamarin, C# by dake

Read more...

Generate PokemonGo RPC Protos to Csharp

Posted in PokemonGo API, Protos, Python, C# by dake

Read more...

C# RSS Reader Publish Date Issue

Posted in ASP.NET, C# by dake

Read more...

RouteCollection setup all route to go to one action

Posted in C#, ASP.NET MVC by dake

asp.net mvc route for all the url

Read more...

ASP.NET MVC one page handler multi page data

Posted in C#, ASP.NET MVC by dake

Read more...

C# 6.0 at ASP.NET 4.0

Posted in C# by dake

Read more...

Sample code to get google map zipcode

Posted in C# by dake

Read more...

sitecore publish item in C#

Posted in Sitecore, C# by dake

How to add sitecore item in C# code

Read more...

Override Connectionstring at NLog Config setting

Posted in NLog, C# by dake

You can define log to database at NLog, but you can't change connection string depend on your enviroment. This blog shows how to change connectionstring at C# side depend on your enviroment.

Read more...

How to config NLog to log to file, database and send email

Posted in C#, NLog by dake

This blog will show a example of how to config NLog so able to log to file, database and call class.

Read more...

Mongodb TextSearch in C#

Posted in MongoDB, C# by dake

Simple code snippet to use mongoC# text search

Read more...

A very simple version of how to make ASP.NET MVC modular

Posted in Visual Studio, C# by dake

Read more...

MVC Bundle and Minification at Sitecore

Posted in C#, ASP.NET MVC, Sitecore by dake

This blog is trying to show how to enable ASP.NET Bundle & Minification for Javascript and CSS.

Read more...

Do you know Random will generator same result?

Posted in C# by dake

Read more...

Pack.net javascript css bundling and minification

Posted in ASP.NET, ASP.NET MVC, C#, JavaScript, CSS by dake

This is about .NET Library I build for Javascript, CSS Bundling and Minification

Read more...

C# MongoDB GEO

Posted in MongoDB, C# by dake

THis blog shows a example of how to use C# location query to MongoDB

 

Read more...

Use MongoDB textSearch by Mongoose

Posted in Mongoose, MongoDB, Node.js, C# by dake

How to use MongoDB text search

Read more...

MongoDB GMT time in C#

Posted in MongoDB, C# by dake

Save DateTime as GMT time to mongo DB

You can set the UTC Date in property level and set when insert.

Property Attribute to save time as UTC

[BsonDateTimeOptions(Kind = DateTimeKind.Utc)]

public DateTime UpdateDate { get; set; }

Save Date when Insert to MongoDatabase.

table.CreateDate = DateTime.UtcNow;

Read more...

Software need for windows enviroment

Posted in ASP.NET, C#, MongoDB, Web by dake

Following are few minimum list I'm using to setup my development enviroments for windows. I hope this would help you as well.

Read more...

WebApi + OData setup

Posted in ASP.NET MVC, C# by dake

This section show how to setup OData Web api

Read more...

Log WebAPI Request Response

Posted in C#, WebAPI(Microsoft) by dake

Example of Log WebAPI MVC3 Controller

Example code of logging every request/response/exception when access to ASP.NET MVC 3 controller.

Read more...

C# add extension to all enum

Posted in C# by dake

In C# you sometime have to convert enum to Int value. Like following example

Read more...

C# parallel coding

Posted in C# by dake

Use C# Parallel would do task in parallel, which could run jobs faster and the code is simple to use.

If you have to call 2000 api via internet in a job schedular for some kind of reason. For example, you could use this way to imprement the application, which call 2000 times api in parallel.

Parallel.ForEach(dataList, data =>
{
    DoYourWorkInParallel(data);                        
});

Read more...

Ioc Ninject tool's basic information

Posted in C# by dake

What's Ninject? Looks like Ninject is greate tool for you to do Dependecy Injection, You could use Ninject for your Unit-Test, wrapper your Interface with your impremenataion file.

This's article is about to provide, basic information about Ninject, links, relatived blogs for learning.

Read more...

Issue list want to resolve

Posted in C#, MongoDB, WebAPI(Microsoft) by dake

Few my personal list I have to take time to learn.

Read more...

Ninject Dependency Injection in ASP.NET MVC

Posted in ASP.NET MVC, ASP.NET, C#, Ninject, Dependency Injection by dake

How to use Dependency Injection in Ninject at ASP.NET MVC application

Read more...

IDisposable and .NET Gabage Collection

Posted in C# by dake

use IDisposable for Model class?

Read more...