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
| $('#ModelText').summernote({ | |
| height: 250, | |
| lang: 'tr-TR', | |
| fontSizes: ['10', '12', '14'], | |
| toolbar: [ | |
| ['style', ['bold', 'italic', 'underline', 'clear']], | |
| ['fontsize', ['fontsize']], | |
| ['para', ['ul', 'ol', 'paragraph']], | |
| ['note-view', ['codeview']] | |
| ], |
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
| CreateTimeout(); | |
| function CreateTimeout() { | |
| console.log('Yooo!'); | |
| setTimeout(function () { alert('Yenileniyor…'); }, 2000); | |
| console.log('Yooo!'); | |
| } | |
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 string GetAllFootprints(Exception x) | |
| { | |
| var st = new StackTrace(x, true); | |
| var frames = st.GetFrames(); | |
| var traceString = ""; | |
| foreach (var frame in frames) | |
| { | |
| if (frame.GetFileLineNumber() < 1) | |
| 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
| List<MyClass> retval = db.Database.SqlQuery<MyClass>(String.Format(@”select * from dbo.fonksiyonum({0})”, id)).OrderBy(p => p.Sinif).ToList<MyClass>(); | |
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 DtoGrafikItem | |
| { | |
| public decimal y { get; set; } | |
| public string tooltip { get; set; } | |
| public string label { get; set; } | |
| } |
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 ExcelExport | |
| { | |
| public static void EpplusExportToExcel(List<SObject> sobjectList, string fileName, bool isAddDateTimeExt = false) | |
| { | |
| fileName = GetFileName(fileName, isAddDateTimeExt); | |
| List<string[]> arrayList = new List<string[]>(); | |
| if (sobjectList != null && sobjectList.Count > 0) | |
| { | |
| //PropertyName leri alınıyor. |
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″ ?> | |
| <configuration> | |
| <log4net> | |
| <appender name=”DbAppender” type=”log4net.Appender.ADONetAppender”> | |
| <bufferSize value=”0″ /> | |
| <connectionType value=”System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ /> | |
| <connectionString value=”data source=IPAdres;Initial Catalog=VeritabaniAdi;user id=KullaniciAdi;password =Sifre;” /> | |
| <commandText value=”INSERT INTO Log4Net ([date],[thread],[level],[logger],[message],[exception], [CurrentUsername],[IPAddress], [CurrentUrl], [UserAgent]) VALUES | |
| (@log_date, @thread , @log_level , @logger , @message , @exception , @CurrentUser , @IPAddress , @CurrentUrl , @UserAgent )” /> |
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 SagmerEnum | |
| { | |
| public enum PoliceTipiTypeEnum | |
| { | |
| [Description("Ferdi")] | |
| Ferdi = 'F', | |
| [Description("Grup")] | |
| Grup = 'G' | |
| } |
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.ServiceModel; | |
| using System.ServiceModel.Description; | |
| using System.ServiceModel.Dispatcher; | |
| using System.Linq; | |
| using SoapLogging.Database; | |
| namespace SoapLogging.Common | |
| { | |
| public class SoapBehavior : IEndpointBehavior, IClientMessageInspector |
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
| //TR: Bu metodu çağıran metotlarda rollback olduğundan, loglamayı etkilemesin diye RequiresNew attribute'u ekleniyor. | |
| //Bu sayede metodun bitmesini beklemeden commit etmiş oluyor | |
| //EN: Parent method of this have rollback features, but i want to log it, | |
| //because of this i added TransactionScopeOption.RequiresNew to unit of work | |
| var unitOfWorkManager = IocManager.Instance.Resolve<IUnitOfWorkManager>(); | |
| using (var unitOfWork = unitOfWorkManager.Begin(System.Transactions.TransactionScopeOption.RequiresNew)) | |
| { | |
| _serviceLogManager.InsertOrUpdateAndGetId(this.ServiceLogEntity); |
OlderNewer