This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string strAcctPauseNote = "paused by the System because Balance is " + string.Format("{0:c2}", dAcctBalance); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.SqlServer.Server; | |
using System.Data.SqlClient; | |
namespace BrokersWeb.Synchronization.SqlServer.Listings | |
{ | |
public static class ListingTriggers | |
{ | |
[SqlTrigger(Name = "trig_listingmodified", | |
Target = "ppc_t_account_profile", | |
Event = "FOR INSERT, DELETE, UPDATE")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ListingTriggers | |
{ | |
[SqlTrigger(Name = "trig_listingmodified", | |
Target = "ppc_t_account_profile", | |
Event = "FOR INSERT, DELETE, UPDATE")] | |
public static void WhenListingModified() | |
{ | |
var context = SqlContext.TriggerContext; | |
var builder = new ListingCommandBuilder(); | |
if (context.TriggerAction != TriggerAction.Insert |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace CustomDictionary { | |
public interface IGenericDictionarySB<T, TK> { | |
T this[TK key] { get; set; } | |
} | |
public class SuperBidParameters : IGenericDictionarySB<string,string> { | |
private string _ageDriver; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ListingsGridDao{ | |
private const string QueryListings = "query with parameters @advertiserId"; | |
private const string QueryReportListings = "query with parameters @advertiserId, @startDate, @endDate"; | |
public IEnumerable<Listing> GetListings(int advertiserId){ | |
var db = DatabaseFactory.CreateDatabase(ConfigurationManager.AppSettings["DBReportsCRUD"]); | |
List<Listing> result = new List<Listing>(); | |
using(var cmd = db.GetSqlStringCommand(QueryListings)){ | |
db.AddInParameter(cmd, "@advertiserId", DbType.Int,advertiserId ); | |
using(var reader = db.ExecuteReader(cmd)){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class jugador{ | |
int puntos; | |
} | |
class hw | |
{ | |
public static void test(jugador j){ | |
j.puntos = j.puntos + 3; | |
} | |
public static void main(String args[]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IXmlToDictionary<T,TK> | |
{ | |
T this[TK key] { get; } | |
} | |
public class DynamicTransformationParams : IXmlToDictionary<string,string> | |
{ | |
private readonly string _keyValueText; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 4 ]; then | |
echo "This script needs 4 parameters as follows:" | |
echo "./getFilesToUpload.sh [root svn path] [internal svn path] [revision(s) - ARG1:ARG2 for ranges] [output folder]" | |
exit 0 | |
fi | |
ROOTSVNPATH=$1 | |
INTERNALSVNPATH=$2 | |
REVISIONS=$3 |