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 override void Up() | |
{ | |
Create.Table("EstaTablaVaEnlaDBOriginal").WithColumn("Hola").AsString(0).NotNullable(); | |
//Cambiar la conexión actual a la base de datos 2 | |
Execute.WithConnection((c, t) => c.ChangeDatabase("TestDB2")); | |
Create.Table("EstaTablaVaEnLaDB2").WithColumn("Hola2").AsString(0).NotNullable(); | |
//Cambiar la conexión actual a la base de datos 1 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<sqlserverinstancename Condition="'$(sqlserverinstancename)' == ''">erkasqlserver.erka.es</sqlserverinstancename> | |
<backupscriptpath Condition="'$(backupscriptpath)' == ''">..\Scripts\Backup\Backup.sql</backupscriptpath> | |
<dbDebugConnectionString Condition="'$(dbDebugConnectionString)' == ''">Data Source=.;Initial Catalog=EKP_INTEGRACION;Integrated Security=true</dbDebugConnectionString> | |
<dbPublishConnectionString Condition="'$(dbPublishConnectionString)' == ''">Data Source=erkasqlserver.erka.es;Initial Catalog=EKP_Integracion;User ID=sa; pwd=erkatxirrita2003</dbPublishConnectionString> | |
<dbMigratorPath Condition="'$(dbMigratorPath)' == ''">..\..\lib\FluentMigrator</dbMigratorPath> | |
</PropertyGroup> | |
</Project> |
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
Does Tweetbot have push notifications? | |
Tweetbot currently has push notification support via Boxcar. | |
Download Boxcar for free on the App Store and create a free Boxcar account. | |
Then just sign in with your twitter account, select Tweetbot as the client you are using, and configure which notifications you want to receive. |
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
<X_BROADCOM_COM_IGMPEnabled>TRUE</X_BROADCOM_COM_IGMPEnabled> |
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 EntidadBase: INotifyPropertyChanged | |
{ | |
protected void Set<T>(ref T campo, T valor, [CallerMemberName] string propiedad= "") | |
{ | |
if (!Object.Equals(campo, valor)) | |
{ | |
campo= valor; | |
OnPropertyChanged(propiedad); | |
} | |
} |
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
/// <summary> | |
/// Inicia la monitorización de versiones | |
/// </summary> | |
private void MonitorizarVersiones() | |
{ | |
try | |
{ | |
if (ApplicationDeployment.IsNetworkDeployed) | |
{ | |
if (ComprobarVersion()) |
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
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ | |
<ToolboxItem(False)> _ | |
Public Class Service2 | |
Inherits System.Web.Services.WebService | |
<WebMethod> | |
Public Function BeginHelloWorld(ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult | |
Dim tarea As Task(Of Boolean) = Task(Of Boolean).Factory.StartNew(Function() HelloWorld(), state) |
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
private void RenombrarFicherosPaquete(TAccion accionEnvio, string rutaPaquete, int numeroVersionPaquete) | |
{ | |
var sufijoNumeroVersionPaquete = String.Format(FORMATO_NUMERO_VERSION_PAQUETE, numeroVersionPaquete); | |
var directorioPaquete = new DirectoryInfo(rutaPaquete); | |
var ficherosPaquete = directorioPaquete.GetFiles(accionEnvio.NombreFichero + "*"); | |
foreach (var ficheroPaquete in ficherosPaquete) | |
{ | |
if (ficheroPaquete.DirectoryName == null) | |
continue; |
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
[Fact] | |
public void GetAllShouldReturnResults() | |
{ | |
} |
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 SymbolDatabaseTheoryData | |
: IEnumerable<object[]> | |
{ | |
public IEnumerator<object[]> GetEnumerator() | |
{ | |
return (from row in dataContext.Table | |
select new { Id = row.Id, Symbol = row.Symbol }); | |
} | |
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() |
OlderNewer